Re: [Rails] Showing 404 page from controller in Rails 3

2010-05-31 Thread Jeffrey L. Taylor
Quoting Joshua Partogi : > Hi all, > > > I want to be able to display 404 page from a controller when a record > in the database can not be found. I am using Rails 3 at the moment. I > tried to find how to do this on guides.rails.info with no luck. Can > anybody recommend the best approach to do

[Rails] Showing 404 page from controller in Rails 3

2010-05-31 Thread Joshua Partogi
Hi all, I want to be able to display 404 page from a controller when a record in the database can not be found. I am using Rails 3 at the moment. I tried to find how to do this on guides.rails.info with no luck. Can anybody recommend the best approach to do this? Thanks heaps for your help and a