aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/routing/route_set.rb
diff options
context:
space:
mode:
authorVipul A M <vipulnsward@gmail.com>2013-03-31 16:49:23 +0530
committerVipul A M <vipulnsward@gmail.com>2013-03-31 16:49:23 +0530
commit1f8499762106e40a6d2a27f27cf8793ffd914f1d (patch)
tree8c91ffd1dbc8d5d37f3ab6ba2f691bb74cbfe8e0 /actionpack/lib/action_dispatch/routing/route_set.rb
parent3b0b573ac3ecbec5b1fa021abbe86b267bbefb8c (diff)
downloadrails-1f8499762106e40a6d2a27f27cf8793ffd914f1d.tar.gz
rails-1f8499762106e40a6d2a27f27cf8793ffd914f1d.tar.bz2
rails-1f8499762106e40a6d2a27f27cf8793ffd914f1d.zip
fix wrong argument error message
Diffstat (limited to 'actionpack/lib/action_dispatch/routing/route_set.rb')
-rw-r--r--actionpack/lib/action_dispatch/routing/route_set.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/routing/route_set.rb b/actionpack/lib/action_dispatch/routing/route_set.rb
index 7fb4719fa0..07203428d4 100644
--- a/actionpack/lib/action_dispatch/routing/route_set.rb
+++ b/actionpack/lib/action_dispatch/routing/route_set.rb
@@ -405,7 +405,7 @@ module ActionDispatch
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"