Created
August 21, 2009 18:44
-
-
Save kris/172313 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rescue_from ActionController::RoutingError, :with => :page_not_found | |
private | |
def page_not_found | |
activate_authlogic | |
@possible = Title.find_tagged_with(request.request_uri.split('/'), :on => :tags, :limit => 5) | |
render :template => "shared/page_not_found", :status => :not_found | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment