Skip to content

Instantly share code, notes, and snippets.

@czottmann
Created October 19, 2009 21:51
Show Gist options
  • Save czottmann/213751 to your computer and use it in GitHub Desktop.
Save czottmann/213751 to your computer and use it in GitHub Desktop.
- form.inputs :for => @child.parent do |t|
- t.input :some_text
- semantic_form_for(@child) do |form|
= form.error_messages
= render :partial => "inputs", :locals => { :form => form }
- form.buttons do
= form.commit_button "Add child element"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment