Posted By

indianocean on 03/29/07


Tagged

routes


Versions (?)

Who likes this?

4 people have marked this snippet as a favorite

bbebop
happolati
stainless
webstic


list of all of the routes you have defined


 / Published in: Rails
 

URL: http://weblog.jamisbuck.org/2007/2/19/route-to_s

  1. ActionController::Routing::Routes.routes.each do |r|
  2. puts r
  3. end
  4.  
  5. # Or list all named routes
  6. ActionController::Routing::Routes.named_routes.routes.each do |name, route|
  7. puts "%20s: %s" % [name, route]
  8. end

Report this snippet  

You need to login to post a comment.