Skip to content

Instantly share code, notes, and snippets.

@christopherslee
Created March 14, 2009 03:29
Show Gist options
  • Save christopherslee/78909 to your computer and use it in GitHub Desktop.
Save christopherslee/78909 to your computer and use it in GitHub Desktop.
<% remote_form_for 'document', Document.new, :url => documents_url, :html => {:multipart => true},
:loading => "$('indicator').show();",
:loaded => "$('indicator').hide();",
:update => {:failure => "new_document_errors"},
:success => "parent.location = request.responseText;" do |f| %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment