class LogsController < ApplicationController before_action :authenticate_user! def index @logs = Log.paginate(page: params[:page], per_page: 20) end end