master
class ErrorsController < ApplicationController def not_found respond_to do |format| format.html { render status: 404 } end rescue ActionController::UnknownFormat render status: 404, text: '404 not found' end end