# Page not found

**URL:** <https://www.ruby-forum.com/t/page-not-found/135917>\
**Category:** Rails\
**Created:** [April 26, 2008, 9:16am UTC](https://www.ruby-forum.com/t/page-not-found/135917 "2008-04-26T09:16:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dhaval\_parikh33](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/bcef8e/32.png) [@dhaval\_parikh33](https://www.ruby-forum.com/u/dhaval_parikh33)\
**Post date:** [April 26, 2008, 9:16am UTC](https://www.ruby-forum.com/t/page-not-found/135917/1 "2008-04-26T09:16:22Z")

</div>

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](http://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 P.

---

<div class="post-metadata">

**Author:** ![dhaval\_parikh33](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/bcef8e/32.png) [@dhaval\_parikh33](https://www.ruby-forum.com/u/dhaval_parikh33)\
**Post date:** [April 26, 2008, 9:36am UTC](https://www.ruby-forum.com/t/page-not-found/135917/2 "2008-04-26T09:36:09Z")

</div>

Dhaval P. 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](http://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 P.

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

---

<div class="post-metadata">

**Author:** ![dhaval\_parikh33](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/bcef8e/32.png) [@dhaval\_parikh33](https://www.ruby-forum.com/u/dhaval_parikh33)\
**Post date:** [April 26, 2008, 11:44am UTC](https://www.ruby-forum.com/t/page-not-found/135917/3 "2008-04-26T11:44:26Z")

</div>

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

On Sat, Apr 26, 2008 at 8:36 AM, Dhaval P. \<
