21
我想爲我的建築物控制器使用一個非常簡單的資源路線。Rails 3.0.3資源路由沒有索引映射?
resource :buildings
這將導致以下映射
buildings POST /buildings(.:format) {:controller=>"buildings", :action=>"create"}
new_buildings GET /buildings/new(.:format) {:controller=>"buildings", :action=>"new"}
edit_buildings GET /buildings/edit(.:format) {:controller=>"buildings", :action=>"edit"}
GET /buildings(.:format) {:controller=>"buildings", :action=>"show"}
PUT /buildings(.:format) {:controller=>"buildings", :action=>"update"}
DELETE /buildings(.:format) {:controller=>"buildings", :action=>"destroy"}
任何人都知道爲什麼沒有索引操作映射默認/建築GET請求?我正在使用rails 3.0.3
啊..就這樣。爲此歡呼。 – ibuck 2011-02-02 22:46:37