Permalink
Browse files

Merge pull request #10012 from vipulnsward/fix_AP_error_message_error

fix wrong argument error message [ci skip]
  • Loading branch information...
2 parents 3b0b573 + 1f84997 commit fa2e45eedd2839b4bda589346cc993fb136e37fa @steveklabnik steveklabnik committed Mar 31, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 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 fa2e45e

Please sign in to comment.