aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/routing/mapper.rb
diff options
context:
space:
mode:
authorCarlos Paramio <carlosparamio@gmail.com>2011-09-01 20:34:15 +0200
committerCarlos Paramio <carlosparamio@gmail.com>2011-09-01 20:34:15 +0200
commit3f64fa9289a7bedb509acd319bf68c0cc0d977fb (patch)
tree5e6d19c8f11c2a8736a2a7a6afed71c63d33ab37 /actionpack/lib/action_dispatch/routing/mapper.rb
parentc96cb8897b4afb0fea7b5fed4ec41d1772d99644 (diff)
downloadrails-3f64fa9289a7bedb509acd319bf68c0cc0d977fb.tar.gz
rails-3f64fa9289a7bedb509acd319bf68c0cc0d977fb.tar.bz2
rails-3f64fa9289a7bedb509acd319bf68c0cc0d977fb.zip
Fix name of parent resource params when declaring nested resources at routes
Diffstat (limited to 'actionpack/lib/action_dispatch/routing/mapper.rb')
-rw-r--r--actionpack/lib/action_dispatch/routing/mapper.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/actionpack/lib/action_dispatch/routing/mapper.rb b/actionpack/lib/action_dispatch/routing/mapper.rb
index a5c1501f61..0c43954d81 100644
--- a/actionpack/lib/action_dispatch/routing/mapper.rb
+++ b/actionpack/lib/action_dispatch/routing/mapper.rb
@@ -1036,12 +1036,12 @@ module ActionDispatch
#
# This generates the following comments routes:
#
- # GET /photos/:id/comments/new
- # POST /photos/:id/comments
- # GET /photos/:id/comments/:id
- # GET /photos/:id/comments/:id/edit
- # PUT /photos/:id/comments/:id
- # DELETE /photos/:id/comments/:id
+ # GET /photos/:photo_id/comments/new
+ # POST /photos/:photo_id/comments
+ # GET /photos/:photo_id/comments/:id
+ # GET /photos/:photo_id/comments/:id/edit
+ # PUT /photos/:photo_id/comments/:id
+ # DELETE /photos/:photo_id/comments/:id
#
# === Options
# Takes same options as <tt>Base#match</tt> as well as: