I'm currently on Rails 2.3.5 and I'm trying rescue_from exceptions as neat as possible in my Application.
My ApplicationController rescues look like this now:
rescue_from Acl9::AccessDenied, :with => :access_denied
rescue_from Exceptions::NotPartOfGroup, :with => :not_part_of_group
rescue_from Exceptions::SomethingWentWrong, :with => :something_went_wrong
rescue_from ActiveRecord::RecordNotFound, :with => :something_went_wrong
rescue_from ActionController::UnknownAction, :with => :something_went_wrong
rescue_from ActionController::UnknownController, :with => :something_went_wrong
rescue_from ActionController::RoutingError, :with => :something_went_wrong
I also want to be able to catch any exceptions no listed above. Is there recommended way I should be writing my rescues?
Thanks