21
私はBuildings Controllerに非常に単純なリソースルートを使用しようとしています。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するためにマップされたindexアクションが存在しない理由を誰もが知っていることになりますか?私はレールを使用しています3.030
ああ、それはそれです。それに乾杯。 – ibuck
あなたはちょうど私の日を救った! – akuhn
私はこれを見つけたまで、私の頭を叩いて20分、ありがとう! – Brett