Search code examples
ruby-on-railsformtastic

Rails: Formtastic field with description


how is it possible to add a description to a form field made with formtastic?

I tried this:

f.input :first_name, description: 'Please insert your first_name'

The description should appear right under the form field.

Thanks


Solution

  • There is no description option for formtastic fields, but you can use :hint option instead

    f.input :first_name, :hint => 'Please insert your first_name'