diff options
author | Schneems <richard.schneeman@gmail.com> | 2011-04-23 02:23:12 +0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-04-23 03:40:09 +0800 |
commit | a8870d140ececc6327533d08b112cece03c41499 (patch) | |
tree | 4178de65f54ab796cbe2ca5f15e181518ba69cb1 /actionpack | |
parent | eb599295db00b9a614e01707db2371d8819947ed (diff) | |
download | rails-a8870d140ececc6327533d08b112cece03c41499.tar.gz rails-a8870d140ececc6327533d08b112cece03c41499.tar.bz2 rails-a8870d140ececc6327533d08b112cece03c41499.zip |
show http method in routing error message
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_dispatch/middleware/show_exceptions.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/show_exceptions.rb b/actionpack/lib/action_dispatch/middleware/show_exceptions.rb index dbe3206808..b1adf3d2d1 100644 --- a/actionpack/lib/action_dispatch/middleware/show_exceptions.rb +++ b/actionpack/lib/action_dispatch/middleware/show_exceptions.rb @@ -50,7 +50,7 @@ module ActionDispatch # Only this middleware cares about RoutingError. So, let's just raise # it here. if headers['X-Cascade'] == 'pass' - raise ActionController::RoutingError, "No route matches #{env['PATH_INFO'].inspect}" + raise ActionController::RoutingError, "No route matches [#{env['REQUEST_METHOD']}] #{env['PATH_INFO'].inspect}" end rescue Exception => exception raise exception if env['action_dispatch.show_exceptions'] == false |