Skip to content
Browse files

Fix name of parent resource params when declaring nested resources at…

… routes
  • Loading branch information...
1 parent c96cb88 commit 3f64fa9289a7bedb509acd319bf68c0cc0d977fb Carlos Paramio committed
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 3f64fa9

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