Permalink
Browse files

Merge pull request #12077 from estsauver/doc_fix

Update mapper documenation for match helper [ci skip]
  • Loading branch information...
2 parents beb5ea8 + 374bda7 commit 8c1f5a05c8b4b033bc1f04844ea09365373f702c @steveklabnik steveklabnik committed Sep 4, 2013
Showing with 3 additions and 2 deletions.
  1. +3 −2 actionpack/lib/action_dispatch/routing/mapper.rb
@@ -362,8 +362,9 @@ def root(options = {})
# # Yes, controller actions are just rack endpoints
# match 'photos/:id', to: PhotosController.action(:show)
#
- # Because request various HTTP verbs with a single action has security
- # implications, is recommendable use HttpHelpers[rdoc-ref:HttpHelpers]
+ # Because requesting various HTTP verbs with a single action has security
+ # implications, you must either specify the actions in
+ # the via options or use one of the HtttpHelpers[rdoc-ref:HttpHelpers]
# instead +match+
#
# === Options

0 comments on commit 8c1f5a0

Please sign in to comment.