aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndré Luis Leal Cardoso Junior <andrehjr@gmail.com>2017-06-03 12:54:30 -0300
committerAndré Luis Leal Cardoso Junior <andrehjr@gmail.com>2017-06-03 13:13:02 -0300
commit9f7c9ee44d9d433a089515e8d4b804a312693c8b (patch)
treee9e32bdf42edebf087a39dc99b027c5f93c12e00
parent387b775160988941a7d891a09ebe3ceaca1aed5e (diff)
downloadrails-9f7c9ee44d9d433a089515e8d4b804a312693c8b.tar.gz
rails-9f7c9ee44d9d433a089515e8d4b804a312693c8b.tar.bz2
rails-9f7c9ee44d9d433a089515e8d4b804a312693c8b.zip
Fix typo on error message when route definition is ambiguous.
-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 7459dd4ff3..88deee5f5e 100644
--- a/actionpack/lib/action_dispatch/routing/mapper.rb
+++ b/actionpack/lib/action_dispatch/routing/mapper.rb
@@ -1837,7 +1837,7 @@ module ActionDispatch
path_types.fetch(String, []).each do |_path|
route_options = options.dup
if _path && option_path
- raise ArgumentError, "Ambigous route definition. Both :path and the route path where specified as strings."
+ raise ArgumentError, "Ambiguous route definition. Both :path and the route path where 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)