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
14 15 16 17 18 19 |
# File 'app/controllers/genkan/sessions_controller.rb', line 14 def create user.login! create_session redirect_to referer_or_root_path, notice: t("genkan.sessions.logged_in") end |
#destroy ⇒ Object
25 26 27 28 |
# File 'app/controllers/genkan/sessions_controller.rb', line 25 def destroy destroy_session redirect_to genkan.login_path, notice: t("genkan.sessions.logged_out") end |
#failure ⇒ Object
21 22 23 |
# File 'app/controllers/genkan/sessions_controller.rb', line 21 def failure redirect_to genkan.login_path, alert: t("genkan.sessions.failure") end |
#new ⇒ Object
11 12 |
# File 'app/controllers/genkan/sessions_controller.rb', line 11 def new end |