Skip to content

Instantly share code, notes, and snippets.

@thejonanshow
Created November 18, 2011 02:02
Show Gist options
  • Save thejonanshow/1375324 to your computer and use it in GitHub Desktop.
Save thejonanshow/1375324 to your computer and use it in GitHub Desktop.
- f.fields_for :integration_store_codes do |builder|
= builder.label :active
= builder.check_box :active
# in the middle of my form I want access to the original object so I can output it's associated store's name
= builder.magically_turns_into_an_integration_store_code.store.name
= builder.label :code
= builder.text_field :code
@j3j3
Copy link

j3j3 commented May 16, 2012

What an amazing gist.

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