Skip to content

Instantly share code, notes, and snippets.

@ryanisinallofus
Created February 1, 2012 23:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryanisinallofus/1720151 to your computer and use it in GitHub Desktop.
Save ryanisinallofus/1720151 to your computer and use it in GitHub Desktop.
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
Copy link

devth commented Feb 1, 2012

impossible!

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