mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Link to listing existing routes
This is a very helpful tool in understanding route helper names, which can sometimes get quite long, especially including namespaces. So it would be really helpful for a developer to learn how to discover these. [skip ci]
This commit is contained in:
parent
3df54e577c
commit
52f5b572ff
1 changed files with 2 additions and 0 deletions
|
@ -142,6 +142,8 @@ Creating a resourceful route will also expose a number of helpers to the control
|
||||||
|
|
||||||
Each of these helpers has a corresponding `_url` helper (such as `photos_url`) which returns the same path prefixed with the current host, port, and path prefix.
|
Each of these helpers has a corresponding `_url` helper (such as `photos_url`) which returns the same path prefixed with the current host, port, and path prefix.
|
||||||
|
|
||||||
|
TIP: To find the route helper names for your routes, see [Listing existing routes](#listing-existing-routes) below.
|
||||||
|
|
||||||
### Defining Multiple Resources at the Same Time
|
### Defining Multiple Resources at the Same Time
|
||||||
|
|
||||||
If you need to create routes for more than one resource, you can save a bit of typing by defining them all with a single call to `resources`:
|
If you need to create routes for more than one resource, you can save a bit of typing by defining them all with a single call to `resources`:
|
||||||
|
|
Loading…
Reference in a new issue