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 06:33
on 2006-04-03 06:49
Greetings Scott Yep, you're right response.headers["Status"] = "404" cheers, Jodi
on 2006-04-03 07:13
Is something preventing... render :nothing => true, :status => 404 ...from being apropos?
on 2006-04-03 17:13
Edward F. wrote: > Is something preventing... > > render :nothing => true, :status => 404 > > ...from being apropos? ahh. Much, more,elegant!