Created
April 16, 2014 19:57
-
-
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.
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
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