Skip to content

Instantly share code, notes, and snippets.

@dabit
Created September 20, 2011 05:24
Show Gist options
  • Save dabit/1228402 to your computer and use it in GitHub Desktop.
Save dabit/1228402 to your computer and use it in GitHub Desktop.
fields_for.html.haml
- i ||= 0
= f.fields_for :options do |ff|
- i += 1
%label Option #{i}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment