Skip to content

Instantly share code, notes, and snippets.

@ktopping
Created January 25, 2012 21:00
Show Gist options
  • Save ktopping/1678688 to your computer and use it in GitHub Desktop.
Save ktopping/1678688 to your computer and use it in GitHub Desktop.
<%= form_for @event, :url => (@event.new_record? ? events_path : event_path(@event)) do |f| %>
...
<%= f.fields_for :options, @event.options do |f2| %>
...
<%= f2.text_field :name %>
...
<$ end %>
...
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment