Created
November 28, 2012 00:13
-
-
Save house9/4158100 to your computer and use it in GitHub Desktop.
all routes and actions
This file contains hidden or 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
all_routes = Rails.application.routes.routes | |
all_routes.each do |route| | |
if route.requirements.has_key?(:controller) and route.requirements[:controller] != "rails/info" then | |
puts "#{route.requirements[:controller]} #{route.requirements[:action]}" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment