To list all the routes available for a Rails application you can run this command from within the Rails project folder.
rails routes
This will list all the routes defined in an application, it’s HTTP method and other useful bits of information. I find this information handy in instances where I’m trying to use the link_to
helper to generate links.