Skip to content

Instantly share code, notes, and snippets.

@technicool
Created April 16, 2014 19:57
Show Gist options
  • Save technicool/10926668 to your computer and use it in GitHub Desktop.
Save technicool/10926668 to your computer and use it in GitHub Desktop.
Iterate thru Rails routes to see all of the controller/action combinations present. Run on the console.
Rails.application.routes.routes.to_a.map {|route| "#{route.defaults[:controller]}##{route.defaults[:action]}" }.uniq.sort
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment