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
free 100$ digital ocean credit