Sha256: 0650cc295e024d037489707dc3fc6c93c352f3a9f822f0fbab38f4a21feb0c60
Contents?: true
Size: 379 Bytes
Versions: 22
Compression:
Stored size: 379 Bytes
Contents
class SessionsController < ApplicationController before_action :authenticate!, except: [:failed, :new] def create redirect_to '/' end def destroy warden.logout redirect_to :back end def failed respond_to do |format| format.html do render 'new' end format.js do render 'show' and return end end end end
Version data entries
22 entries across 22 versions & 1 rubygems