Jump to content

The ultimate community for Ruby on Rails developers.


Photo

rescue_from method in application controller

application controller ruby ruby on rails controller

  • Please log in to reply
1 reply to this topic

#1 Ruppak Joon

Ruppak Joon

    Passenger

  • Members
  • 1 posts

Posted 19 June 2014 - 06:55 AM

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



#2 Ohm

Ohm

    Driver

  • Moderators
  • 479 posts
  • LocationCopenhagen

Posted 19 June 2014 - 11:51 AM

Seems like a question for a test? Are you trying to cheat?  :P


  • Ruppak Joon likes this

Blog: http://ohm.sh | Twitter: @madsohm | Work: Lokalebasen.dk






Also tagged with one or more of these keywords: application controller, ruby, ruby on rails, controller

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users