full_stack_twitter_clone/app/controllers/static_pages_controller.rb

16 lines
223 B
Ruby

class StaticPagesController < ApplicationController
before_action :user_is_authenticated, except: [:login]
def home
render 'home'
end
def login
render 'login'
end
def user
render 'user'
end
end