Forum: Ruby on Rails rescue_from method in application controller

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
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
This topic is locked and can not be replied to.