Class: Genkan::SessionsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Genkan::SessionsController
- Defined in:
- app/controllers/genkan/sessions_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
13 14 15 16 17 18 |
# File 'app/controllers/genkan/sessions_controller.rb', line 13 def create user.login! create_session redirect_to referer_or_root_path, notice: t('genkan.sessions.logged_in') end |
#destroy ⇒ Object
24 25 26 27 |
# File 'app/controllers/genkan/sessions_controller.rb', line 24 def destroy destroy_session redirect_to genkan.login_path, notice: t('genkan.sessions.logged_out') end |
#failure ⇒ Object
20 21 22 |
# File 'app/controllers/genkan/sessions_controller.rb', line 20 def failure redirect_to genkan.login_path, alert: t('genkan.sessions.failure') end |
#new ⇒ Object
11 |
# File 'app/controllers/genkan/sessions_controller.rb', line 11 def new; end |