Im trying to assign custom classes to my simple_form elements to modify with CSS and its just not working.. following the documentation, something like
<%= f.input :username, :input_html => { :class => 'special' } %>
Should work but does not…
Any clues? Thanks!!!
PS- This line is in a nested “f.simple_fields_for”
if you are embedded in a
fields_forthen it should beI normally use haml, so my erb might be a bit off. but the idea is that if you are in a
fields_forblock you need to use the block variable of that block and not the variable for the parent form’s block.