Skip to content

Instantly share code, notes, and snippets.

@sbeam
Created September 30, 2010 23:37
Show Gist options
  • Save sbeam/605507 to your computer and use it in GitHub Desktop.
Save sbeam/605507 to your computer and use it in GitHub Desktop.
module Spree::Site::OrdersController
def self.included(target)
target.class_eval do
create.wants.js
create.failure.wants.js { render :js => "alert('#{format_js_error}')" }
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment