class MainController < ApplicationController def index # unless User.logged_in # redirect_to '/login' # end end end