Skip to content

Commit

Permalink
added a script to make rake routes output prettier
Browse files Browse the repository at this point in the history
Run script/routes to view formatted routes output.
Grep on it to narrow results, etc.
  • Loading branch information
komidore64 committed Aug 3, 2011
1 parent cd9e2e7 commit 83ce187
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions script/routes
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

# outputs the routes in a fashion that's a little easier to read.
rake routes | sed -e "s/(.:format)//g" | sed -e "s/ \{3,\}/ /g"

# run script/routes then grep on it to search for stuff, etc.

0 comments on commit 83ce187

Please sign in to comment.