class ProtectedController < ApplicationController before_action :authenticate_user! include Pagy::Backend end