Skip to content

Instantly share code, notes, and snippets.

@cyrille
Created March 13, 2011 09:06
Show Gist options
  • Save cyrille/867980 to your computer and use it in GitHub Desktop.
Save cyrille/867980 to your computer and use it in GitHub Desktop.
Rails one-liner to get URLs from rake routes
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