Picture of Michael Lee
:wave: Hey hey, I'm Michael Lee and this is my site about being a developer, being a dad and making side projects.
Sponsorship

List all routes for a Rails application

Written on July 17, 2018

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.

Thanks for taking the time to read this article. I'd love to stay in touch and share more tips on programming and design and side projects. Sign up and I'll send you my articles straight to your email.
Previous post: So do it