Skip to content

Instantly share code, notes, and snippets.

@kris
Created August 21, 2009 18:44
Show Gist options
  • Save kris/172313 to your computer and use it in GitHub Desktop.
Save kris/172313 to your computer and use it in GitHub Desktop.
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