13 lines
196 B
Ruby
13 lines
196 B
Ruby
|
|
class SessionsController < ApplicationController
|
||
|
|
before_action :authenticate_user, only: [:destroy]
|
||
|
|
|
||
|
|
def create
|
||
|
|
user = User.find_by(email: params[:email])
|
||
|
|
|
||
|
|
end
|
||
|
|
|
||
|
|
def destroy
|
||
|
|
|
||
|
|
end
|
||
|
|
end
|