Skip to content

Instantly share code, notes, and snippets.

@x37v
Created October 15, 2010 18:27
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 x37v/628689 to your computer and use it in GitHub Desktop.
Save x37v/628689 to your computer and use it in GitHub Desktop.
<%= form_for(@opportunity) do |f| %>
#...
<% f.fields_for :opportunity_filters do |filter_form| %>
<%= render 'opportunity_filters/edit_form',
:collection => @opportunity.opportunity_filters,
:as => :opportunity_filter, :locals => {:f => filter_form} %>
<% end %>
#..
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment