2014-03-06から1日間の記事一覧

Railsのnamespaceに関してのメモ

Railsのnamespace Rails Guidesに該当する部分はここ namespaceのときはControllerもわける 例えば namespace :admin do resources :posts, only: [:index, :new, :create] end resources :posts, only: [:show, :edit, :update, :destroy] というときには、…