Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #8795 (closed enhancement: fixed)

Opened 1 year ago

Last modified 1 year ago

[PATCH] new task to list routes

Reported by: hasmanyjosh Assigned to: core
Priority: normal Milestone: 1.x
Component: Railties Version: edge
Severity: normal Keywords: task
Cc:

Description

This patch adds the rails:routes task that lists all routes defined for the application, including those added by plugins and whatnot. Example:

              ideas GET    /ideas/                           {:controller=>"ideas", :action=>"index"}
    formatted_ideas GET    /ideas.:format/                   {:controller=>"ideas", :action=>"index"}
                    POST   /ideas/                           {:controller=>"ideas", :action=>"create"}
                    POST   /ideas.:format/                   {:controller=>"ideas", :action=>"create"}
           new_idea GET    /ideas/new/                       {:controller=>"ideas", :action=>"new"}
 formatted_new_idea GET    /ideas/new.:format/               {:controller=>"ideas", :action=>"new"}
          edit_idea GET    /ideas/:id/edit/                  {:controller=>"ideas", :action=>"edit"}
formatted_edit_idea GET    /ideas/:id/edit.:format/          {:controller=>"ideas", :action=>"edit"}
               idea GET    /ideas/:id/                       {:controller=>"ideas", :action=>"show"}
     formatted_idea GET    /ideas/:id.:format/               {:controller=>"ideas", :action=>"show"}
                    PUT    /ideas/:id/                       {:controller=>"ideas", :action=>"update"}
                    PUT    /ideas/:id.:format/               {:controller=>"ideas", :action=>"update"}
                    DELETE /ideas/:id/                       {:controller=>"ideas", :action=>"destroy"}
                    DELETE /ideas/:id.:format/               {:controller=>"ideas", :action=>"destroy"}
                           /:controller/:action/:id.:format/ 
                           /:controller/:action/:id/         

Attachments

rails_routes_task.diff (1.2 kB) - added by hasmanyjosh on 06/28/07 15:46:35.
rails:routes task

Change History

06/28/07 15:46:35 changed by hasmanyjosh

  • attachment rails_routes_task.diff added.

rails:routes task

06/28/07 18:33:09 changed by david

  • status changed from new to closed.
  • resolution set to fixed.

(In [7149]) Added rake routes for listing all the defined routes in the system (closes #8795) [josh]