When using the Simple Form gem, is it possible to specify a wrapper and its HTML? I don't want to manually create a <div>
via HTML, but want to learn if there are wrapper
options to pass into simple_fields_for
.
Given
<%= f.simple_fields_for :xxx, do |xxx| %>
...
<% end %>
I want the simple_fields_for
to create a wrapper, <div class="xyz">...</div>
around any code output inside it
Similar issues:
simple_fields_for
is for a nested form, which is inside a parent form. I want the div to wrap this nested form. – James L.simple_form
. – max