Skip to content

Instantly share code, notes, and snippets.

@slowjud
Created August 12, 2009 04:07
Show Gist options
  • Save slowjud/166326 to your computer and use it in GitHub Desktop.
Save slowjud/166326 to your computer and use it in GitHub Desktop.
controllers = ActionController::Routing::Routes.routes.collect {|r| "#{r.defaults[:controller]}_controller".classify}
non_existent = []
controllers.uniq.each do |c|
begin
c.constantize
rescue
non_existent << c
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment