Displaying 1 result from an estimated 1 matches for "party_header".
Did you mean:
part_header
2006 Apr 05
2
RJS and remote forms
...te_forms pushed in an RJS update.
In my controller, I have an action that creates a new model and returns
a form for one of its children:
def create_party
party = Party.create
render :update do |page|
page.insert_html :top, ''party-list'', :partial => ''party_header'',
:locals => { :party => party }
page.insert_html :after, "party-#{party.id}", :partial =>
''guest_form'', :locals => { :guest => party.guests.build }
end
end
_guest_form.rhtml is:
<tr>
<% remote_form_for :guest, guest, :...