routes.rake
Posted by Chad Humphries over 2 years ago / Source: http://errtheblog.com/post/38
Wanna see all your routes right there in your terminal? Yeah.
desc "Print out all the currently defined routes." 
task :routes => :environment do
  puts ActionController::Routing::Routes.routes.map { |r| 
    sprintf "%30s => %s", r.path.inspect, r.known.inspect
  } rescue puts ActionController::Routing::Routes.routes
end
Stick that in RAILS_ROOT/lib/tasks/ as something like routes.rake, then run it with rake routes.
Language Ruby / Tagged with rake