Move all 404 handling to application_controller
parent
46d0a94dda
commit
648cf1140b
@ -1,15 +0,0 @@
|
||||
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
|
@ -1,5 +0,0 @@
|
||||
require 'spec_helper'
|
||||
|
||||
describe ExceptionsController do
|
||||
|
||||
end
|
Loading…
Reference in New Issue