# replace index at the bottom with this code def index @homepage = Homepage.new(@current_user) @random_user = User.unscoped.order(Arel.sql("RAND()")).first unless @homepage.logged_in? @user_count, @work_count, @fandom_count = @homepage.rounded_counts end @hide_dashboard = true render action: 'index', layout: 'application' end end