DEV Community

Cover image for Simplify Your Rails Route Filtering with This Quick Tip
Diego Novais
Diego Novais

Posted on

1

Simplify Your Rails Route Filtering with This Quick Tip

EN:

TIL: Quick tip for Rails users!

Instead of using rails routes | grep articles to filter routes, try using:

bin/rails routes -g articles
Enter fullscreen mode Exit fullscreen mode

This makes searching for routes simpler and more straightforward, without the need for grep.


PT/BR:

TIL: Dica rápida para quem usa Rails!

Em vez de usar rails routes | grep articles para filtrar rotas, experimente usar:

bin/rails routes -g articles
Enter fullscreen mode Exit fullscreen mode

Isso torna a busca por rotas mais simples e direta, sem precisar do grep.

Top comments (2)

Collapse
 
giovannycordeiro profile image
Giovanny Cordeiro

Poh Diego, valeu pela dica, volta e meia preciso ficar filtrando no console as rotas, vai ajudar bastante!

Collapse
 
dnovais profile image
Diego Novais

@giovannycordeiro Eu agradeço pelo feedback e fico muito feliz em poder ajudar! Sucesso! =D

Image of Timescale

Timescale – the developer's data platform for modern apps, built on PostgreSQL

Timescale Cloud is PostgreSQL optimized for speed, scale, and performance. Over 3 million IoT, AI, crypto, and dev tool apps are powered by Timescale. Try it free today! No credit card required.

Try free

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay