Skip to content
Browse files

fix wrong argument error message

  • Loading branch information...
1 parent 3b0b573 commit 1f8499762106e40a6d2a27f27cf8793ffd914f1d @vipulnsward vipulnsward committed Mar 31, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_dispatch/routing/route_set.rb
View
2 actionpack/lib/action_dispatch/routing/route_set.rb
@@ -405,7 +405,7 @@ def add_route(app, conditions = {}, requirements = {}, defaults = {}, name = nil
if name && named_routes[name]
raise ArgumentError, "Invalid route name, already in use: '#{name}' \n" \
- "You may have defined two routes with the same name using the `:as` option, or "
+ "You may have defined two routes with the same name using the `:as` option, or " \
"you may be overriding a route already defined by a resource with the same naming. " \
"For the latter, you can restrict the routes created with `resources` as explained here: \n" \
"http://guides.rubyonrails.org/routing.html#restricting-the-routes-created"

0 comments on commit 1f84997

Please sign in to comment.
Something went wrong with that request. Please try again.