1 2 3 4 5 6 7 8 9 10 11 12 13 14
# We render http errors ourselves so we can customize them class ErrorsController < ApplicationController respond_to :html # 404 def not_found render status: 404 end # 500 def server_error render status: 500 end end