resource(リソース名 [, オプション])
resource :page
# page POST /page(.:format) pages#create
# new_page GET /page/new(.:format) pages#new
# edit_page GET /page/edit(.:format) pages#edit
# GET /page(.:format) pages#show
# PUT /page(.:format) pages#update
# DELETE /page(.:format) pages#destroy
resource :page, as: :main
# main POST /page(.:format) pages#create
# new_main GET /page/new(.:format) pages#new
# edit_main GET /page/edit(.:format) pages#edit
# GET /page(.:format) pages#show
# PUT /page(.:format) pages#update
# DELETE /page(.:format) pages#destroy
resource :page, controller: :main
# page POST /page(.:format) main#create
# new_page GET /page/new(.:format) main#new
# edit_page GET /page/edit(.:format) main#edit
# GET /page(.:format) main#show
# PUT /page(.:format) main#update
# DELETE /page(.:format) main#destroy
resource :page, path: 'admin/page'
# page POST /admin/page(.:format) pages#create
# new_page GET /admin/page/new(.:format) pages#new
# edit_page GET /admin/page/edit(.:format) pages#edit
# GET /admin/page(.:format) pages#show
# PUT /admin/page(.:format) pages#update
# DELETE /admin/page(.:format) pages#destroy
resource :page, only: [:show]
# page GET /page(.:format) pages#show
resource :page, except: [:create, :new]
# edit_page GET /page/edit(.:format) pages#edit
# page GET /page(.:format) pages#show
# PUT /page(.:format) pages#update
# DELETE /page(.:format) pages#destroy
resource :page, module: :admin
# page POST /page(.:format) admin/pages#create
# new_page GET /page/new(.:format) admin/pages#new
# edit_page GET /page/edit(.:format) admin/pages#edit
# GET /page(.:format) admin/pages#show
# PUT /page(.:format) admin/pages#update
# DELETE /page(.:format) admin/pages#destroy