2009-02-27から1日間の記事一覧

config/routes.rb

使用環境 Ruby on Rails 2.2.2 map.root map.root :controller => 'users' root / {:action=>"index", :controller=>"users"} map.connect map.connect 'articles/:year/:month/:day', :controller => 'articles', :action => 'find_by_date', :year => /\d{…

config/routes.rb : map.resources

使用環境 Ruby on Rails 2.2.2 map.resources map.resources :coms .:format は省略 coms GET /coms {:action=>"index", :controller=>"coms"} POST /coms {:action=>"create", :controller=>"coms"} new_com GET /coms/new {:action=>"new", :controller=>"…