Page not found

Hi all

I want to know in which file do i need to make changes if the page is not found... i mean say suppose i m opening a url as url.com/images/2 and the id 2 doesnt exist so it will show me routing error..where as i want to redirect it to some page where it will display a msg that page not found..

Can neone tell me if this facility is built in RoR? I guess its there but i m not able to figure it out.

Awaiting Reply

Thanking You

Dhaval Parikh

Dhaval Parikh wrote:

Hi all

I want to know in which file do i need to make changes if the page is not found... i mean say suppose i m opening a url as url.com/images/2 and the id 2 doesnt exist so it will show me routing error..where as i want to redirect it to some page where it will display a msg that page not found..

Can neone tell me if this facility is built in RoR? I guess its there but i m not able to figure it out.

Awaiting Reply

Thanking You

Dhaval Parikh

i m not sure bt if i change to production environment will that automatically work??

Rails has a built in set of files in public folder, 404, 501, 403, rails in production mode should use these by default!