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