/ Published in: Rails
URL: http://weblog.jamisbuck.org/2007/2/19/route-to_s
Expand |
Embed | Plain Text
ActionController::Routing::Routes.routes.each do |r| puts r end # Or list all named routes ActionController::Routing::Routes.named_routes.routes.each do |name, route| puts "%20s: %s" % [name, route] end
You need to login to post a comment.
