Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Greppin in ur routes
Ruby
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
lib
spec
.rvmrc
Gemfile
Gemfile.lock
README.md
Rakefile
grep_routes.gemspec

README.md

Grep Routes

Running rake routes is super slow and a waste of time.

grep_routes is similar to rake routes | grep someroute but way faster. My SuperScientificBenchmarks™ indicate 10x speed improvement over rake routes on big Rails projects to 3x on a fresh Rails 3.2 app, ymmv.

Note: This only works on Rails 3.1 and 3.2.

Install

gem install grep_routes

Usage

All commands should be run from the root of your Rails3 project.

Show all your routes:

grep_routes

Grep through your routes:

grep_routes privacy_policy

Grep through your routes using regex:

grep_routes "(privacy_policy|terms|\w+_id)"

Reporting Problems

Please use Github Issues to report any problems. Please include a snippet of your routes.rb file so its easier to diagnose, test, and fix the problem!

Contributing

Fork, code, send pull request.

Something went wrong with that request. Please try again.