carlo (owner)

Revisions

gist: 213751 Download_button fork
public
Public Clone URL: git://gist.github.com/213751.git
Embed All Files: show embed
_inputs.haml #
1
2
3
- form.inputs :for => @child.parent do |t|
  - t.input :some_text
 
new.haml #
1
2
3
4
5
6
- semantic_form_for(@child) do |form|
  = form.error_messages
  = render :partial => "inputs", :locals => { :form => form }
  - form.buttons do
    = form.commit_button "Add child element"