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 -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 Parikhi m not sure bt if i change to production environment will that automatically work?? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 Parikh < rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > 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?? > -- > Posted via http://www.ruby-forum.com/. > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---