Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

cmouse's latest activity

Tuesday, March 29 2011
6645 Rails 3 rescue_from cannot handle custom exceptions was updated in Ruby on Rails
  • cmouse
    cmouse commented at 7:18 PM

    Oh yes, forgot:

    rescue_from StorageExceptions::PermissionDeniedException, :with => :redirect_403

    private def redirect_403

    if session[:user_id].nil?
      redirect_...
  • cmouse
    cmouse created the ticket at 7:14 PM

    in def_rescue_with_handler (lib/active_support/rescuable.rb:77) the exception is already NameError instead of the custom exception. This makes it impossible to ...