0
0
Fork 0
mirror of https://github.com/ENSL/ensl.org.git synced 2025-01-27 03:30:54 +00:00
ensl.org/app/controllers/errors_controller.rb
2014-04-26 18:47:17 +01:00

13 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