Sha256: 311ae4baef81534be28c2bec434a46affeae19e32a4c98f194aeda600f5988eb
Contents?: true
Size: 293 Bytes
Versions: 2
Compression:
Stored size: 293 Bytes
Contents
class SessionsController < ApplicationController def new @user = User.new end def show end def create @user = User.find_by_name(params[:user][:name]) # No Authentication! session[:user_id] = @user.id end def destroy session.delete(:user_id) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
garage-doorkeeper-2.0.0 | spec/dummy/app/controllers/sessions_controller.rb |
garage-doorkeeper-1.0.0 | spec/dummy/app/controllers/sessions_controller.rb |