One of the most confusing things I found whilst learning Rails was how to correctly use routes. It is my hope through this blog I can uncover some of the magic our routes.rb facilitates.
To list the existing routes in your project simply run
When running this command your terminal will provide output similar to the screenshot below. You can refine your search to specific model names using a pipe, for example..
rails routes | grep blog