app/controllers/application.rb
# Some of our unit tests want us to return a 404 page when certain
# kinds of errors occur.  This used to be automatic, but for now, let's
# do it manually.  Is this necessary, or just an artifact?
Some of our unit tests want us to return a 404 page when certain
kinds of errors occur.  This used to be automatic, but for now, let's
do it manually.
Some of our unit tests want us to return a 404 page when certain kinds of errors occur . This used to be automatic but for now let ' s do it manually .
def render_404 message=nil
      if message
        render :text => message, :status => 404
      else
        render :file => "public/404.html", :status => 404
      end
    end
def render_404 message = nil if message render :text => message , :status => 404 else render :file => "public/404.html" , :status => 404 end end
Some of our unit tests want us to return a 404 page when certain
kinds of errors occur.
Some of our unit tests want us to return a 404 page when certain kinds of errors occur .
message
<not_specific>