Published 1 min readRails

Simplify Your Rails Route Filtering with This Quick Tip

Stop piping rails routes through grep: Rails has a built-in route filter.

Use the built-in filter

Instead of running rails routes | grep articles to find the routes you care about, pass the -g flag and let Rails do the filtering for you.

terminal
# instead of
rails routes | grep articles

# use
bin/rails routes -g articles

Read more

All articles