aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/routing/mapper.rb
diff options
context:
space:
mode:
authorZoran Pesic <zoran1991@gmail.com>2017-08-18 20:52:58 -0700
committerZoran Pesic <zoran1991@gmail.com>2017-08-18 20:52:58 -0700
commit842bc456c712df8a4ddd9d85a3d6182e79a23ab2 (patch)
tree1d1f23e4e5c4ec8b35ba8f1351d9e89e24a3d056 /actionpack/lib/action_dispatch/routing/mapper.rb
parenta90e38158311e546701a5dd39c82fa56aeb9e980 (diff)
downloadrails-842bc456c712df8a4ddd9d85a3d6182e79a23ab2.tar.gz
rails-842bc456c712df8a4ddd9d85a3d6182e79a23ab2.tar.bz2
rails-842bc456c712df8a4ddd9d85a3d6182e79a23ab2.zip
fix typo in ambiguous route definition error message
Diffstat (limited to 'actionpack/lib/action_dispatch/routing/mapper.rb')
-rw-r--r--actionpack/lib/action_dispatch/routing/mapper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/routing/mapper.rb b/actionpack/lib/action_dispatch/routing/mapper.rb
index 28809d7e67..57a5bc681e 100644
--- a/actionpack/lib/action_dispatch/routing/mapper.rb
+++ b/actionpack/lib/action_dispatch/routing/mapper.rb
@@ -1851,7 +1851,7 @@ module ActionDispatch
path_types.fetch(String, []).each do |_path|
route_options = options.dup
if _path && option_path
- raise ArgumentError, "Ambiguous route definition. Both :path and the route path where specified as strings."
+ raise ArgumentError, "Ambiguous route definition. Both :path and the route path were specified as strings."
end
to = get_to_from_path(_path, to, route_options[:action])
decomposed_match(_path, controller, route_options, _path, to, via, formatted, anchor, options_constraints)