On Wed, Oct 24, 2012 at 3:07 PM, Pierre d. <lists / ruby-forum.com> wrote:

> How could I generate a 404 error status whenever I want and if possible
> in a rhtml file?

In the relevant controller method add:

        response.status= 404

Done.
-- 
Hassan Schroeder ------------------------ hassan.schroeder / gmail.com
http://about.me/hassanschroeder
twitter: @hassan