ActiveRecord::RecordNotFound exceptions handled more gracefully
git-svn-id: http://redmine.rubyforge.org/svn/trunk@133 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -103,6 +103,12 @@ class ApplicationController < ActionController::Base
|
||||
redirect_to_url session[:return_to]
|
||||
session[:return_to] = nil
|
||||
end
|
||||
end
|
||||
|
||||
def render_404
|
||||
@html_title = "404"
|
||||
render :template => "common/404", :layout => true, :status => 404
|
||||
return false
|
||||
end
|
||||
|
||||
# qvalues http header parser
|
||||
|
||||
Reference in New Issue
Block a user