Jonathan Wallace
2008-Jul-02 19:50 UTC
default behavior on unrecognized route in development and production environment
Hello, The default behavior for a new rails 2.1 with mongrel 1.1.5 for an unrecognized route in both a production and development environment is to generate a Routing Exception. I was under the impression the default in production should be to render 404.html file found in the public directory. Please see my pastie at http://pastie.org/226508 for how I tested this. I also tested it in ff3 w/the same exception. Am I missing something or doing something incorrectly? Thanks, Jonathan --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Brian Hogan
2008-Jul-02 20:18 UTC
Re: default behavior on unrecognized route in development and production environment
The default behavior is for RecordNotFound exceptions to display a 404. I don''t believe that''s true for routiing exceptions. On Wed, Jul 2, 2008 at 2:50 PM, Jonathan Wallace <jonathan.wallace-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Hello, > The default behavior for a new rails 2.1 with mongrel 1.1.5 for an > unrecognized route in both a production and development environment is > to generate a Routing Exception. > > I was under the impression the default in production should be to > render 404.html file found in the public directory. Please see my > pastie at http://pastie.org/226508 for how I tested this. I also > tested it in ff3 w/the same exception. Am I missing something or > doing something incorrectly? > Thanks, > Jonathan > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Frederick Cheung
2008-Jul-02 20:33 UTC
Re: default behavior on unrecognized route in development and production environment
On Jul 2, 9:18 pm, "Brian Hogan" <bpho...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> The default behavior is for RecordNotFound exceptions to display a 404. I > don''t believe that''s true for routiing exceptions. >It''s also the case that requests form localhost are handled differently (when dealing with what is displayed when an error occurs). Fred --~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Brian Hogan
2008-Jul-02 22:11 UTC
Re: default behavior on unrecognized route in development and production environment
Ahh that''s right! I forgot about that! On Wed, Jul 2, 2008 at 3:33 PM, Frederick Cheung <frederick.cheung-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > > On Jul 2, 9:18 pm, "Brian Hogan" <bpho...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > The default behavior is for RecordNotFound exceptions to display a 404. I > > don''t believe that''s true for routiing exceptions. > > > > It''s also the case that requests form localhost are handled > differently (when dealing with what is displayed when an error > occurs). > > Fred > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---