asiniy asiniy - 3 months ago 16
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

Just specify input type:

= f.input :title, label: "Name:", placeholder: "New make", as: :string
Comments