diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-12-21 17:34:53 -0600 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-12-21 17:34:53 -0600 |
commit | 715dd10961cefd1d8039cb81f47788d0a5b97d0d (patch) | |
tree | 8f42b989f8e7b5a0c3d782d330de0a107286a88a /actionpack | |
parent | f82e1046f893c80c6234495f1bca28b4fb6520c9 (diff) | |
download | rails-715dd10961cefd1d8039cb81f47788d0a5b97d0d.tar.gz rails-715dd10961cefd1d8039cb81f47788d0a5b97d0d.tar.bz2 rails-715dd10961cefd1d8039cb81f47788d0a5b97d0d.zip |
Less annoying RoutingError message
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_dispatch/routing/route_set.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_dispatch/routing/route_set.rb b/actionpack/lib/action_dispatch/routing/route_set.rb index bf2443c1be..a4dc5e0956 100644 --- a/actionpack/lib/action_dispatch/routing/route_set.rb +++ b/actionpack/lib/action_dispatch/routing/route_set.rb @@ -5,7 +5,7 @@ module ActionDispatch module Routing class RouteSet #:nodoc: NotFound = lambda { |env| - raise ActionController::RoutingError, "No route matches #{env['PATH_INFO'].inspect} with #{env.inspect}" + raise ActionController::RoutingError, "No route matches #{env['PATH_INFO'].inspect}" } PARAMETERS_KEY = 'action_dispatch.request.path_parameters' @@ -426,7 +426,7 @@ module ActionDispatch end end - raise ActionController::RoutingError, "No route matches #{path.inspect} with #{environment.inspect}" + raise ActionController::RoutingError, "No route matches #{path.inspect}" end end end |