DEV Community

Discussion on: 'Rails Routes' My New BFF

Collapse
 
kdraypole profile image
Kobe Raypole

This is a nice introduction piece to the wonders of Rails routes. As a Rails developer, I often find myself having to go back and search for routes. A cool beginner trick is to combine the rails routes command with grep.

By using rails routes | grep articles you can quickly find routes that contain the keyword articles. This is especially useful when working in a large codebase.

As you start to become more comfortable with Rails you'll learn the cool tips like concerns to help simplify your routes!