From 1d5083ddf7f2b285e63bb8019d38199e862fa1d8 Mon Sep 17 00:00:00 2001 From: David Gay Date: Sun, 2 May 2021 20:56:19 -0400 Subject: Login with forced character creation, views, etc --- config/routes.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'config') diff --git a/config/routes.rb b/config/routes.rb index 6754031..e048a85 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,4 +1,6 @@ Rails.application.routes.draw do + root to: "home#index", as: :home_index + devise_scope :user do get "login", to: "devise/sessions#new" get "logout", to: "devise/sessions#destroy" @@ -9,5 +11,5 @@ Rails.application.routes.draw do put "users", to: "devise/registrations#update", as: "user_registration" end - root to: "home#index", as: :home_index + resources :characters, only: [:show, :new, :create] end -- cgit v1.2.3