Skip to content
Browse files

Merge pull request #63 from carlosparamio/master

Fix name of parent resource params when declaring nested resources at routes
  • Loading branch information...
2 parents c96cb88 + 3f64fa9 commit 5fbbf4417c1e463a3429dfe5dcef9462e4771a54 @vijaydev vijaydev committed Sep 1, 2011
Showing with 6 additions and 6 deletions.
  1. +6 −6 actionpack/lib/action_dispatch/routing/mapper.rb
View
12 actionpack/lib/action_dispatch/routing/mapper.rb
@@ -1036,12 +1036,12 @@ def resource(*resources, &block)
#
# 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:

0 comments on commit 5fbbf44

Please sign in to comment.
Something went wrong with that request. Please try again.