asiniy asiniy - 1 year ago 90
Ruby Question

simple_form I'm getting No input found for citext

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?

Answer Source

Just specify input type:

= f.input :title, label: "Name:", placeholder: "New make", as: :string
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download