feat: Sessions controller

Sessions helper methods, login and signup modals, load partial views with stimulus

Situmuls usersController, Create and Destroy user sessions
This commit is contained in:
Juan Rodriguez
2021-06-14 11:46:25 -05:00
parent f63be42b4c
commit 9c7146820c
28 changed files with 288 additions and 58 deletions
+5 -2
View File
@@ -1,10 +1,13 @@
# frozen_string_literal: true
Rails.application.routes.draw do
root 'links#index'
root 'sessions#welcome'
get '/:slug', to: 'links#redirect', as: :short
post 'login', to: 'sessions#create', as: :login
post 'logout', to: 'sessions#destroy', as: :logout
resources :links, only: %i[create]
resources :users, only: %i[new create]
resources :users, only: %i[create]
end