Creating a local copy of the routes.rb file to speed up your grepping of the routes
Public, Command Line, Rails General
Created: Oct 07, 2016 Updated: Oct 08, 2016
routes.rb file, for decent size projects, can take a long time. One solution to speed up this process is to create a local copy of the current state of your
routes.rb file, and grep that file as needed.
This way the new
local_routes file will not continuously be an untracked file in your project's
That created a file called
local_routes; however, you can use any name here.
For example, in order to grep the file for
This file will not automatically remain in step with your routes. You'll want to do that manually, as needed. To update the new
routes file, again call:
> both creates a new file, as well as replaces the content of the existing one.