Live to Code

code to live

Faster Rake Routes Searching

31 Mar 2012 | , ,


If you are sick of the time it takes to run rake routes every time you want to inspect your routes or search for a particular one, check out this gem that my friend Jordan Carter wrote called groute.

It caches your routes in a temporary file so that subsequent searches are lightning fast, and only regenerates the routes when they change.


Install the gem:

$ gem install groute

and use it like this:

$ groute products

which is the same as doing:

$ rake routes | grep products

but way faster!