You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
asciinema.org/app/controllers/exceptions_controller.rb

16 lines
277 B
Ruby

class ExceptionsController < ApplicationController
def not_found
respond_to do |format|
format.any do
render :text => 'Requested resource not found', :status => 404
end
format.html do
render :status => 404
end
end
end
end