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

Eliminate Context Switching and Maximize Productivity

Pieces.app

Pieces Copilot is your personalized workflow assistant, working alongside your favorite apps. Ask questions about entire repositories, generate contextualized code, save and reuse useful snippets, and streamline your development process.

Learn more

👋 Kindness is contagious

Dive into an ocean of knowledge with this thought-provoking post, revered deeply within the supportive DEV Community. Developers of all levels are welcome to join and enhance our collective intelligence.

Saying a simple "thank you" can brighten someone's day. Share your gratitude in the comments below!

On DEV, sharing ideas eases our path and fortifies our community connections. Found this helpful? Sending a quick thanks to the author can be profoundly valued.

Okay