Skip to content

Instantly share code, notes, and snippets.

@jzellman
Created October 7, 2009 18:04
Show Gist options
  • Save jzellman/204269 to your computer and use it in GitHub Desktop.
Save jzellman/204269 to your computer and use it in GitHub Desktop.
class ApplicationController < ActionController::Base
def rescue_action(exception)
# Why do I need the :: in front of ActionController?
if exception.is_a? ::ActionController::UnknownAction
redirect_to :controller => "account", :action => "login"
else
...
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment