mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-28 05:21:19 +00:00
14 lines
199 B
Ruby
14 lines
199 B
Ruby
|
class ErrorsController < ApplicationController
|
||
|
layout 'errors'
|
||
|
|
||
|
def show
|
||
|
render status_code.to_s, status: status_code
|
||
|
end
|
||
|
|
||
|
private
|
||
|
|
||
|
def status_code
|
||
|
params[:code] || 500
|
||
|
end
|
||
|
end
|