mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-21 03:35:23 +02:00
rails-routes: add page (#3922)
This commit is contained in:
parent
c779c21a44
commit
8aef2d2858
1 changed files with 20 additions and 0 deletions
20
pages/common/rails-routes.md
Normal file
20
pages/common/rails-routes.md
Normal file
|
@ -0,0 +1,20 @@
|
|||
# rails routes
|
||||
|
||||
> List routes in a Rails application.
|
||||
> More information: <https://guides.rubyonrails.org/routing.html>.
|
||||
|
||||
- List all routes:
|
||||
|
||||
`rails routes`
|
||||
|
||||
- List all routes in an expanded format:
|
||||
|
||||
`rails routes --expanded`
|
||||
|
||||
- List routes partially matching URL helper method name, HTTP verb, or URL path:
|
||||
|
||||
`rails routes -g {{posts_path|GET|/posts}}`
|
||||
|
||||
- List routes that map to a specified controller:
|
||||
|
||||
`rails routes -c {{posts|Posts|Blogs::PostsController}}`
|
Loading…
Add table
Reference in a new issue