Skip to content

Instantly share code, notes, and snippets.

@JonasNielsen
Created April 1, 2010 19:33
Show Gist options
  • Save JonasNielsen/352254 to your computer and use it in GitHub Desktop.
Save JonasNielsen/352254 to your computer and use it in GitHub Desktop.
# IN RJS
page.replace_html "client_informations", :partial => 'shared/client_billing_form', :locals => {:client => @client}
# IN _client_billing_form
%p
= remote_form_for client, :controller => 'clients', :action =>'update_billing_from_editor', :id => client.id, :method => :put do |f|
= render :partial => 'shared/client_billing_info_fields', :locals => {:f => f, :client => client}
%br
= f.submit "Correct Informations", :class => "button green"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment