2015-01-13から1日間の記事一覧

resourcesメソッドを指定してRESTfulなルーティングを作る

1.Controllerの作成 $rails g controller books index show new crete edit destroy update 2.ルーティングを作成 vim config/routes.rb========================================= #既に作られているルーティングをコメントアウト(削除) #get 'books/index'…