class HomeController < ApplicationController before_action :authenticate_user! def index @user = current_user @logins = Login.where(user: @user) end end