summaryrefslogtreecommitdiff
path: root/app/controllers/errors_controller.rb
blob: 2b2a21e68bb803d9ac022304f53c7b18617883c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# frozen_string_literal: true

class ErrorsController < ApplicationController
  skip_authorization_check

  def not_found
    @title = '404 - Page Not Found'

    respond_to do |format|
      format.html { render status: :not_found }
      format.all  { head :not_found, content_type: 'text/html' }
    end
  end
end