aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/routing/mapper.rb
diff options
context:
space:
mode:
authorEarl St Sauver <estsauver@gmail.com>2014-03-20 14:59:39 -0700
committerEarl St Sauver <estsauver@gmail.com>2014-03-20 14:59:39 -0700
commit9632919b0ca6423ae46fbb1c079ccdeb8353ecab (patch)
treee2684ad291d6118a084cf6a78d98eaf72aab4513 /actionpack/lib/action_dispatch/routing/mapper.rb
parent6c821073f3eb0cb4acec8ad98fc54a25fd5fe6ce (diff)
downloadrails-9632919b0ca6423ae46fbb1c079ccdeb8353ecab.tar.gz
rails-9632919b0ca6423ae46fbb1c079ccdeb8353ecab.tar.bz2
rails-9632919b0ca6423ae46fbb1c079ccdeb8353ecab.zip
Mention required glob param name in match docs for mapper
THe match documentation doesn't mention any requirement of the parameter name requirement for matches. However, including a bare glob character without a variable assignment causes a parse error.
Diffstat (limited to 'actionpack/lib/action_dispatch/routing/mapper.rb')
-rw-r--r--actionpack/lib/action_dispatch/routing/mapper.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/actionpack/lib/action_dispatch/routing/mapper.rb b/actionpack/lib/action_dispatch/routing/mapper.rb
index 0b762aa9a4..833573b41a 100644
--- a/actionpack/lib/action_dispatch/routing/mapper.rb
+++ b/actionpack/lib/action_dispatch/routing/mapper.rb
@@ -357,6 +357,10 @@ module ActionDispatch
# # params[:category] = 'rock/classic'
# # params[:title] = 'stairway-to-heaven'
#
+ # To match a wildcard parameter, it must have a name assigned to it.
+ # Without a variable name to attach the glob parameter to, the route
+ # can't be parsed.
+ #
# When a pattern points to an internal route, the route's +:action+ and
# +:controller+ should be set in options or hash shorthand. Examples:
#