Anybody know how to do this, do I have to manually tinker with the
response object?
raise ActiveRecord::RecordNotFound or so, look in api.rubyonrails.com
for the class.
The 404 is in reality triggerd by catching this exception and rendering
the 404.html file. You could also just do this.
This is what I was looking for, I think this is the cleanest way of
doing things in my situation. I didn’t know it would throw a 404 on a
RecordNotFound Exception (in dev mode you don’t notice this)
Thanks!
Jeroen
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.