rails routes
List routes in a Rails application.
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}
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).