rails-routes

List routes in a Rails application.

TLDR

List all routes

$ rails routes
copy

List all routes in an expanded format

$ rails routes --expanded
copy

List routes partially matching URL helper method name, HTTP verb, or URL path

$ rails routes -g [posts_path|GET|/posts]
copy

List routes that map to a specified controller

$ rails routes -c [posts|Posts|Blogs::PostsController]
copy

Copied to clipboard
Earn up to $40 for learning about crypto currencies