Created
March 13, 2011 09:06
-
-
Save cyrille/867980 to your computer and use it in GitHub Desktop.
Rails one-liner to get URLs from rake routes
This file contains 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
rake routes | sed -e "1d" -e "s,^[^/]*,,g" | awk '{print $1}' | uniq | sort | |
Source: http://trevmex.com/post/3822870892/rails-one-liner-to-get-urls-from-rake-routes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment