Sha256: 5fd21206d31d471b6971361064d3bce3688779bc7ab52a371ee7b003a4db0fab

Contents?: true

Size: 639 Bytes

Versions: 19

Compression:

Stored size: 639 Bytes

Contents

module RailsBase
  class ErrorsController < RailsBaseApplicationController
    before_action :set_variable

    def not_found
      @status = 404
      @message = "The Page can't be found"
      render template: 'rails_base/errors/not_found'
    end

    def unacceptable
      @status = 422
      @message = "Client Error. Please retry"
      render template: 'rails_base/errors/unacceptable'
    end

    def internal_error
      @status = 500
      @message = "An Internal Error has occured"
      render template: 'rails_base/errors/internal_error'
    end

    private

    def set_variable
      @error_page = true
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
rails_base-0.82.0 app/controllers/rails_base/errors_controller.rb
rails_base-0.81.1 app/controllers/rails_base/errors_controller.rb
rails_base-0.81.0 app/controllers/rails_base/errors_controller.rb
rails_base-0.80.0 app/controllers/rails_base/errors_controller.rb
rails_base-0.75.6 app/controllers/rails_base/errors_controller.rb
rails_base-0.75.5 app/controllers/rails_base/errors_controller.rb
rails_base-0.75.4 app/controllers/rails_base/errors_controller.rb
rails_base-0.75.3 app/controllers/rails_base/errors_controller.rb
rails_base-0.75.2 app/controllers/rails_base/errors_controller.rb
rails_base-0.75.1 app/controllers/rails_base/errors_controller.rb
rails_base-0.75.0 app/controllers/rails_base/errors_controller.rb
rails_base-0.74.0 app/controllers/rails_base/errors_controller.rb
rails_base-0.73.1 app/controllers/rails_base/errors_controller.rb
rails_base-0.73.0 app/controllers/rails_base/errors_controller.rb
rails_base-0.72.1 app/controllers/rails_base/errors_controller.rb
rails_base-0.72.0 app/controllers/rails_base/errors_controller.rb
rails_base-0.71.0 app/controllers/rails_base/errors_controller.rb
rails_base-0.70.1.pre app/controllers/rails_base/errors_controller.rb
rails_base-0.70.0 app/controllers/rails_base/errors_controller.rb