Create a gist now

Instantly share code, notes, and snippets.

formtastic nested attr
#issue
%li.ticket_types
= f.inputs :for => :ticket_types do |tt|
<li class="ticket_types"></li>
<li class="input"> <!-- uh oh! ->
...
#work around
%li
%span.formtastic_haml_hack
= f.inputs :for => :ticket_types do |tt|
#generates
<li class="ticket_types">
<span class="formtastic_haml_hack">
<li class="input">
...
@devth

impossible!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment