Websites/app/controllers/exceptions_controller.rb

12 lines
242 B
Ruby

# frozen_string_literal: true
class ExceptionsController < ApplicationController
def index
@pagy, @exceptions = pagy(ExceptionLog.order(id: :desc), items: 25)
end
def show
@exception = ExceptionLog.find(params[:id])
end
end