diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-01-02 08:47:07 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-01-02 08:47:07 +0000 |
commit | e3becc7c3c53aff0566cd862c13b0bd032da1169 (patch) | |
tree | 51158f62af5ca62a00308a84ce2eae986ccade22 /app/controllers/application.rb | |
parent | e7caec6e7d1ac9c67878562f53c4ad2ba1e82217 (diff) | |
download | redmine-e3becc7c3c53aff0566cd862c13b0bd032da1169.tar.gz redmine-e3becc7c3c53aff0566cd862c13b0bd032da1169.zip |
ActiveRecord::RecordNotFound exceptions handled more gracefully
git-svn-id: http://redmine.rubyforge.org/svn/trunk@133 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/application.rb')
-rw-r--r-- | app/controllers/application.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/controllers/application.rb b/app/controllers/application.rb index 516285d77..da01e09c8 100644 --- a/app/controllers/application.rb +++ b/app/controllers/application.rb @@ -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
|