Skip to content

Commit

Permalink
return 404 on routing error
Browse files Browse the repository at this point in the history
  • Loading branch information
Doug Youch committed Jan 4, 2011
1 parent 5bed20d commit a1e3b24
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/controllers/application_controller.rb
Expand Up @@ -392,6 +392,7 @@ def debug_print(*obj) # :nodoc:


def rescue_action_in_public(exception,display = true) # :nodoc:
return render(:text => 'Page not found', :status => :not_found) if exception.is_a?(ActionController::RoutingError)
return if exception.is_a?(ActionController::InvalidAuthenticityToken)

deliverer = self.class.read_inheritable_attribute(:exception_data)
Expand Down

0 comments on commit a1e3b24

Please sign in to comment.