Sha256: b325949da62f9c1d6432e69fbbd8dd889affb8edd065083f5a8cf358a1b658a1

Contents?: true

Size: 493 Bytes

Versions: 113

Compression:

Stored size: 493 Bytes

Contents

class Lalala::Public::ErrorsController < ApplicationController

  helper_method :current_exception

  # 404 - Not Found
  def not_found
    render layout: false, status: 404
  end

  # 422 - Unprocessable Entity
  def unprocessable_entity
    render layout: false, status: 422
  end

  # 500 - Internal Server Error
  def internal_server_error
    render layout: false, status: 500
  end

private

  def current_exception
    @current_exception ||= env["action_dispatch.exception"]
  end

end

Version data entries

113 entries across 113 versions & 1 rubygems

Version Path
lalala-4.0.0.dev.66 app/controllers/lalala/public/errors_controller.rb
lalala-4.0.0.dev.65 app/controllers/lalala/public/errors_controller.rb
lalala-4.0.0.dev.64 app/controllers/lalala/public/errors_controller.rb
lalala-4.0.0.dev.63 app/controllers/lalala/public/errors_controller.rb
lalala-4.0.0.dev.62 app/controllers/lalala/public/errors_controller.rb
lalala-4.0.0.dev.61 app/controllers/lalala/public/errors_controller.rb
lalala-4.0.0.dev.60 app/controllers/lalala/public/errors_controller.rb
lalala-4.0.0.dev.59 app/controllers/lalala/public/errors_controller.rb
lalala-4.0.0.dev.58 app/controllers/lalala/public/errors_controller.rb
lalala-4.0.0.dev.57 app/controllers/lalala/public/errors_controller.rb
lalala-4.0.0.dev.56 app/controllers/lalala/public/errors_controller.rb
lalala-4.0.0.dev.50 app/controllers/lalala/public/errors_controller.rb
lalala-4.0.0.dev.46 app/controllers/lalala/public/errors_controller.rb