Skip to content

Instantly share code, notes, and snippets.

@leesmith
Created March 13, 2011 19:58
Show Gist options
  • Save leesmith/868374 to your computer and use it in GitHub Desktop.
Save leesmith/868374 to your computer and use it in GitHub Desktop.
Rails one-liner to get URLs from rake routes
# http://trevmex.com/post/3822870892/rails-one-liner-to-get-urls-from-rake-routes
rake routes | sed -e "1d" -e "s,^[^/]*,,g" | awk '{print $1}' | sort | uniq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment