I want to programmatically under certain conditions return a 404 (page not found) error to the browser. How can I do this from my controller? I'm assuming I need to set a header on the reponse obect. However I can't figure out what the header name is. thanks, scott.
on 2006-04-03 04:33
on 2006-04-03 04:49
Greetings Scott Yep, you're right response.headers["Status"] = "404" cheers, Jodi
on 2006-04-03 05:13
Is something preventing... render :nothing => true, :status => 404 ...from being apropos?
on 2006-04-03 15:13
Edward Frederick wrote: > Is something preventing... > > render :nothing => true, :status => 404 > > ...from being apropos? ahh. Much, more,elegant!