Last active
August 29, 2015 14:23
-
-
Save SamuraiT/5c826889b8d800978c50 to your computer and use it in GitHub Desktop.
show-routes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| show_routes() { | |
| #TODO ADD Usage | |
| # remove {:id=>/\d+/} | |
| if [ -z "$1" ]; then | |
| bundle exec rake routes | sed -n 's/ */ | /gp' | |
| else | |
| bundle exec rake routes | grep $1 | sed -n 's/ */ | /gp' | |
| fi | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment