Skip to content

Instantly share code, notes, and snippets.

@house9
Created November 28, 2012 00:13
Show Gist options
  • Save house9/4158100 to your computer and use it in GitHub Desktop.
Save house9/4158100 to your computer and use it in GitHub Desktop.
all routes and actions
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