Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Allow RouteSet#recognition_failed to be used to handle unknown URL fo…

…rwarding

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1766 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit 3c4295c4e05fe5f98b82b7a4a2c4cddc96a740a6 1 parent f4bfacb
@seckar seckar authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  actionpack/lib/action_controller/routing.rb
View
2  actionpack/lib/action_controller/routing.rb
@@ -427,7 +427,7 @@ def recognize(request)
path.shift
hash = recognize_path(path)
- recognition_failed(request) unless hash && hash['controller']
+ return recognition_failed(request) unless hash && hash['controller']
controller = hash['controller']
hash['controller'] = controller.controller_path
Please sign in to comment.
Something went wrong with that request. Please try again.