the rails request cycle
Post on 05-Dec-2014
10.793 Views
Preview:
DESCRIPTION
A journey through the Rails request cycle. It might be a bit hard to follow w/o the talk to go along with it. From January 2007
TRANSCRIPT
Handle errors.
controller_class.process_with_exception(request,response,exception)
rescue Exception => exception
end
end
Handle errors.
controller_class.process_with_exception(request,response,exception)
rescue Exception => exception
failsafe_response(output, '500 Internal Server Error', exception) do
end
end
Setup instance.
handy accessors
from request:
requestparamscookies
from response:responsetemplatesessionheaders
top related