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.1.0.dev.392 app/controllers/lalala/public/errors_controller.rb
lalala-4.0.0.dev.393 app/controllers/lalala/public/errors_controller.rb
lalala-4.1.0.dev.391 app/controllers/lalala/public/errors_controller.rb
lalala-4.1.0.dev.390 app/controllers/lalala/public/errors_controller.rb
lalala-4.1.0.dev.389 app/controllers/lalala/public/errors_controller.rb
lalala-4.0.0.dev.388 app/controllers/lalala/public/errors_controller.rb
lalala-4.1.0.dev.387 app/controllers/lalala/public/errors_controller.rb
lalala-4.1.0.dev.386 app/controllers/lalala/public/errors_controller.rb
lalala-4.0.0.dev.385 app/controllers/lalala/public/errors_controller.rb
lalala-4.0.0.dev.212 app/controllers/lalala/public/errors_controller.rb
lalala-4.0.0.dev.208 app/controllers/lalala/public/errors_controller.rb
lalala-4.0.0.dev.202 app/controllers/lalala/public/errors_controller.rb
lalala-4.0.0.dev.201 app/controllers/lalala/public/errors_controller.rb
lalala-4.0.0.dev.198 app/controllers/lalala/public/errors_controller.rb
lalala-4.0.0.dev.195 app/controllers/lalala/public/errors_controller.rb
lalala-4.0.0.dev.194 app/controllers/lalala/public/errors_controller.rb
lalala-4.0.0.dev.193 app/controllers/lalala/public/errors_controller.rb
lalala-4.0.0.dev.192 app/controllers/lalala/public/errors_controller.rb
lalala-4.0.0.dev.191 app/controllers/lalala/public/errors_controller.rb
lalala-4.0.0.dev.190 app/controllers/lalala/public/errors_controller.rb