Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 721a6c0a1e
Fetching contributors…

Cannot retrieve contributors at this time

20 lines (16 sloc) 0.408 kb
class SessionsController < ApplicationController
def new
end
def create
user = login(params[:email], params[:password], params[:remember_me])
if user
redirect_back_or_to root_url, :notice => "Logged in!"
end
flash.now.alert = "Email or Password was invalid"
render :new
end
def destroy
logout
redirect_to root_url, :notice => "Logged Out!"
end
end
Jump to Line
Something went wrong with that request. Please try again.