C:\rubydev\ad\REST>rake routes
(in C:/rubydev/ad/REST)
search_events GET /events/search {:controller=>"events", :action=>"search"}
formatted_search_events GET /events/search.:format {:controller=>"events", :action=>"search"}
events GET /events {:controller=>"events", :action=>"index"}
formatted_events GET /events.:format {:controller=>"events", :action=>"index"}
POST /events {:controller=>"events", :action=>"create"}
POST /events.:format {:controller=>"events", :action=>"create"}
new_event GET /events/new {:controller=>"events", :action=>"new"}
formatted_new_event GET /events/new.:format {:controller=>"events", :action=>"new"}
edit_event GET /events/:id/edit {:controller=>"events", :action=>"edit"}
formatted_edit_event GET /events/:id/edit.:format {:controller=>"events", :action=>"edit"}
event GET /events/:id {:controller=>"events", :action=>"show"}
formatted_event GET /events/:id.:format {:controller=>"events", :action=>"show"}
PUT /events/:id {:controller=>"events", :action=>"update"}
PUT /events/:id.:format {:controller=>"events", :action=>"update"}
DELETE /events/:id {:controller=>"events", :action=>"destroy"}
DELETE /events/:id.:format {:controller=>"events", :action=>"destroy"}
/:controller/:action/:id
/:controller/:action/:id.:format
rake 出来的...
有search的 action的.
这问题想了很久,就是不懂