From: "Pierre d." Date: 2012-10-27T01:41:53+09:00 Subject: Re: Googlebot- How to generate a 404 error status after a if statement Hello finally I put <%= response.status=404 %> after my if statement, not in the controller but in the rhtml file, as I dont well know how to deal with a controller. the result is not bad as there is no redirect but it doesnt deliver an true error status 404 or else, it just display 404 on the page. Could you help me implement this correctly in the controller? Do I have to call a special page in the controller? Def bla bla end if yes how do I execute this page, what should I write in the rhtml statement? :) -- Posted via http://www.ruby-forum.com/.