選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 
 
 

15 行
337 B

  1. Rails.application.routes.draw do
  2. root 'users#index', as: 'users_index'
  3. get 'admin/index'
  4. controller :sessions do
  5. get 'login' => :new
  6. post 'login' => :create
  7. delete 'logout' => :destroy
  8. end
  9. resources :users
  10. # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
  11. end