I have a basic text input in the simple_form:
= f.input :title, label: "Name:", placeholder: "New make"
I fetch this exception when I'm trying to render the view:
No input found for citext
How can I solve it?
Just specify input type:
= f.input :title, label: "Name:", placeholder: "New make", as: :string
You can also put following line in the initializer to define custom input mappings.
SimpleForm::FormBuilder.map_type :citext, to: SimpleForm::Inputs::TextInput
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With