Hi Kath,
Alternatively, you can:
rescue_from 'ActiveRecord::RecordNotFound', :with => :not_found
private
def not_found
render :template => 'errors/not_found'
end
It depends on the page. For public pages and if you are concerned with
SEO, I suggest giving users an alternative page or suggestions, or a
search box. For pages that require authentication, a simple error
message would often suffice.
Regards,
Greg
--
Confessions of a Chief Home Officer
http://gregmoreno.ca
I'm on Twitter too!
http://twitter.com/gregmoreno