ensl.org/app/controllers/errors_controller.rb

14 lines
199 B
Ruby
Raw Normal View History

2014-04-26 17:47:17 +00:00
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