Story Notes - ER

Show Routing information


There should be a page that shows routing information, possibly using a GraphViz-generated diagram.


My rx script generates a reasonable first cut at this (shown below), using routes() (from ActionController::Routing::Routes) under script/console. However, older versions of Rails don't support this.

   /:sections/                       ANY     feed             feed           
   /:path.:ext/                      ANY     assets           show           
   /:path.:ext/                      ANY     "                "              
   /:path.:ext/                      ANY     "                "              
   /:path.:ext/                      ANY     "                "              
   /overview.xml/                    ANY     admin/overview   feed           
/admin/                              ANY     "                index          
   /assets;upload/                   POST    admin/assets     upload         
   /assets.:format;upload/           POST    "                "              
   /assets;clear_bucket/             POST    "                clear_bucket   
   /assets.:format;clear_bucket/     POST    "                "              
   /assets;latest/                   POST    "                latest         
   /assets.:format;latest/           POST    "                "              
   /assets;search/                   POST    "                search         
   /assets.:format;search/           POST    "                "              
   /assets/                          GET     "                index          
   /assets.:format/                  GET     "                "              
   /assets/                          POST    "                create         
   /assets.:format/                  POST    "                "              
      /new/                          GET     "                new            
      /new.:format/                  GET     "                "              
      /:id;edit/                     GET     "                edit           
      /:id.:format;edit/             GET     "                "              
      /:id;add_bucket/               POST    "                add_bucket     
      /:id.:format;add_bucket/       POST    "                "              
      /:id/                          GET     "                show           
      /:id.:format/                  GET     "                "              
      /:id/                          PUT     "                update         
      /:id.:format/                  PUT     "                "              
      /:id/                          DELETE  "                destroy        
      /:id.:format/                  DELETE  "                "              
/xmlrpc/                             ANY     backend          xmlrpc         
         /:version/                  ANY     :controller      :action        
/:path/                              ANY     mephisto         dispatch       
/                                    ANY     "                "              



Emerging Items

This wiki page is maintained by Rich Morin, an independent consultant specializing in software design, development, and documentation. Please feel free to email comments, inquiries, suggestions, etc!

Projects/Arti.SN_Form edit

SN_Title Show Routing information
SN_Type ER
SN_UseType View
SN_Priority Important
SN_Urgency Soon
SN_TaskSize M
SN_Phase Devel
SN_Status Inactive
Topic revision: r2 - 12 Jun 2008, RichMorin
This site is powered by Foswiki Copyright © by the contributing authors. All material on this wiki is the property of the contributing authors.
Foswiki version v2.1.6, Release Foswiki-2.1.6, Plugin API version 2.4
Ideas, requests, problems regarding CFCL Wiki? Send us email