Forum: Ruby on Rails rescue_from method in application controller

4ff613c7bbf8410342c70f61fea790fb?d=identicon&s=25 Anil Kumar (Guest)
on 2014-06-19 10:39
(Received via mailing list)
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
4c6bde00168d595053c09aac7e487f8e?d=identicon&s=25 Colin Law (Guest)
on 2014-06-19 21:09
(Received via mailing list)
On 19 June 2014 08:06, Anil Kumar <aniltimt@gmail.com> wrote:
> 3). routing errors
> 4). all of these

If you want help with your school work you should at least rephrase
the question so it is not quite so obvious.

Colin
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.