# File lib/resource_controller/actions.rb, line 33 def update load_object before :update if object.update_attributes object_params after :update set_flash :update response_for :update else after :update_fails set_flash :update_fails response_for :update_fails end end