Skip to content

Instantly share code, notes, and snippets.

@dkln
Created January 21, 2011 14:47
Show Gist options
  • Save dkln/789763 to your computer and use it in GitHub Desktop.
Save dkln/789763 to your computer and use it in GitHub Desktop.
Easy adding/removing in nested forms for simple_form
%fieldset
%h3= PressRelease.model_name.human :count => 2
= nested_fields_for form, :press_releases do |nested_form|
%fieldset
= nested_form.input :description
= nested_form.input :url
= nav_for_existing_record nested_form
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment