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.425 app/controllers/lalala/public/errors_controller.rb
lalala-4.1.0.dev.420 app/controllers/lalala/public/errors_controller.rb
lalala-4.1.0.dev.419 app/controllers/lalala/public/errors_controller.rb
lalala-4.1.0.dev.418 app/controllers/lalala/public/errors_controller.rb
lalala-4.1.0.dev.417 app/controllers/lalala/public/errors_controller.rb
lalala-4.0.0.dev.416 app/controllers/lalala/public/errors_controller.rb
lalala-4.1.0.dev.415 app/controllers/lalala/public/errors_controller.rb
lalala-4.1.0.dev.414 app/controllers/lalala/public/errors_controller.rb
lalala-4.1.0.dev.413 app/controllers/lalala/public/errors_controller.rb
lalala-4.1.0.dev.412 app/controllers/lalala/public/errors_controller.rb
lalala-4.1.0.dev.411 app/controllers/lalala/public/errors_controller.rb
lalala-4.1.0.dev.410 app/controllers/lalala/public/errors_controller.rb
lalala-4.1.0.dev.409 app/controllers/lalala/public/errors_controller.rb
lalala-4.0.0.dev.407 app/controllers/lalala/public/errors_controller.rb
lalala-4.1.0.dev.408 app/controllers/lalala/public/errors_controller.rb
lalala-4.1.0.dev.398 app/controllers/lalala/public/errors_controller.rb
lalala-4.1.0.dev.397 app/controllers/lalala/public/errors_controller.rb
lalala-4.0.0.dev.396 app/controllers/lalala/public/errors_controller.rb
lalala-4.0.0.dev.395 app/controllers/lalala/public/errors_controller.rb
lalala-4.1.0.dev.394 app/controllers/lalala/public/errors_controller.rb