Created
November 14, 2012 10:20
-
-
Save jugyo/4071380 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ApplicationController < ActionController::Base | |
# see also: http://stackoverflow.com/questions/2385799/how-to-redirect-to-a-404-in-rails | |
def not_found! | |
raise ActionController::RoutingError.new('Not Found') | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
あーそうか。真面目に render :status とかやるから面倒なのか。