asiniy asiniy - 5 months ago 41
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?


Just specify input type:

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