Skip to content

Commit

Permalink
Fix typo / missing quote in routing guide [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosantoniodasilva committed Mar 13, 2024
1 parent 70bf0cb commit 3efae44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guides/source/routing.md
Original file line number Diff line number Diff line change
Expand Up @@ -1147,7 +1147,7 @@ resources :photos

This changes the route helpers for `/admin/photos` from `photos_path`,
`new_photos_path`, etc. to `admin_photos_path`, `new_admin_photo_path`,
etc. Without the addition of `as: 'admin_photos` on the scoped `resources
etc. Without the addition of `as: 'admin_photos'` on the scoped `resources
:photos`, the non-scoped `resources :photos` will not have any route helpers.

To prefix a group of route helpers, use `:as` with `scope`:
Expand Down

0 comments on commit 3efae44

Please sign in to comment.