search for: 404_myerror

Displaying 1 result from an estimated 1 matches for "404_myerror".

2007 Apr 09
0
How to render my own error pages correctly?
...erefore I defined: class MyException < Exception end Furthermore I catch that in application.rb: def rescue_action_in_public(exception) case exception when MyException logger.error("404 displayed") render :file => "#{RAILS_ROOT}/public/errorpages/404_myerror.html", :status => "404", :layout => false So far, so good. I get my page displayed. BUT everytime my application layout (application.rhtml) gets rendered too! Look, I''ve set ":layout => false"! The problem is, that I can not get a re...