編集ページを新たに追加方法
Aのページでindexの表示をlistというページでもできるようにする。
#index.html.erb <%= link_to 'List', :controller => 'schedules' ,:action => 'list' %>
contorollerに
list.html.erbを追加
こうしてschedule/listを見てもidが無い言われる。
ルーティングというのが必要
http://d.hatena.ne.jp/satake7/20080511/p1
を参考に
#config/routes.rb map.resources :schedules, :collection => { :list => :get } #rake routes list_schedules GET /schedules/list(.:format) {:action=>"list", :controller=>"schedules"}
としたら
schedule/list
というページができたー