asciinema.org/app/controllers/exceptions_controller.rb
2011-11-23 21:47:09 +01:00

11 lines
242 B
Ruby

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