I have basic text input in simple_form:
= f.input :title, label: "Name:", placeholder: "New make"
I get this exception when I try to display the view:
No input found for citext
How can I solve it?
Just specify the input type:
= f.input :title, label: "Name:", placeholder: "New make", as: :string
You can also put the following line in the initializer to define custom input mappings.
SimpleForm::FormBuilder.map_type :citext, to: SimpleForm::Inputs::TextInput
Source: https://habr.com/ru/post/1247893/More articles:How do you clear Redux state? - reactjsInjection Dependence Fine Structure 3 - phpWhat is the “good” setting for PHP ticks using pcntl_signal? - phpPowerShell 5 AppSettings Error? - windowsChanging the name of the load balancer in the AWS console - amazon-web-servicesBower simulator parsing syntax syntax - bowerUNIX: how to use the find command to find the full path if the given partial path is unixCassandra nodes cannot communicate with each other, call ReadTimeout - cassandraError opening font of type Uncaught while loading TextGeometry font - javascripthttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1247898/sql-transaction-log-shipping-fails-to-restore-database-to-standby&usg=ALkJrhhD4M_E2VpQO80wroWALBzMU3pcngAll Articles