Skip to content

Instantly share code, notes, and snippets.

@slowjud
Created August 12, 2009 04:47
Show Gist options
  • Save slowjud/166332 to your computer and use it in GitHub Desktop.
Save slowjud/166332 to your computer and use it in GitHub Desktop.
missing_actions = []
ActionController::Routing::Routes.routes.each do |route|
begin
unless "#{route.defaults[:controller]}_controller".classify.constantize.instance_methods.include? route.defaults[:action]
missing_actions << route.defaults
end
rescue
end
end
puts missing_actions.to_yaml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment