Displaying 1 result from an estimated 1 matches for "guest_form".
2006 Apr 05
2
RJS and remote forms
...ate_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, :url => { :action => ''create_guest''
} do |f| %>
<%= f.hidden_field :party_id %>
<td><%= f.text_fie...