Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Greppin in ur routes

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 bin
Octocat-spinner-32 lib
Octocat-spinner-32 spec
Octocat-spinner-32 .rvmrc
Octocat-spinner-32 Gemfile
Octocat-spinner-32 Gemfile.lock
Octocat-spinner-32 README.md
Octocat-spinner-32 Rakefile
Octocat-spinner-32 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.