rescue_from method in application controller

91 views
Skip to first unread message

Anil Kumar

unread,
Jun 19, 2014, 3:06:14 AM6/19/14
to rubyonra...@googlegroups.com

What exception cannot be handled with rescue_from method in application controller?
e.g
class ApplicationController < ActionController::Base
  rescue_from Exception, with: error_handler
  . . . . . . . . . .
end
 
1). server errors
2). record not found (404)
3). routing errors
4). all of these

 

Thanks in advance

Joon

Colin Law

unread,
Jun 19, 2014, 3:09:03 PM6/19/14
to rubyonra...@googlegroups.com
If you want help with your school work you should at least rephrase
the question so it is not quite so obvious.

Colin
Reply all
Reply to author
Forward
0 new messages