I noticed by chance that script/console in my machine understands HTTP::Status::BAD_REQUEST but can''t for the life of me find where''s that defined. A grep in the Ruby source tree for "BAD_REQUEST" gives cgi.rb (which defines an unrelated HTTP_STATUS hash), and a grep in my local gems tree gives facets, and rubyforge as candidates. But that is evaluated successfully in a void application with no extra libs loaded. Any ideas? -- fxn --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Xavier Noria wrote:> I noticed by chance that script/console in my machine understands > > HTTP::Status::BAD_REQUEST > > but can''t for the life of me find where''s that defined. A grep in the > Ruby source tree for "BAD_REQUEST" gives cgi.rb (which defines an > unrelated HTTP_STATUS hash), and a grep in my local gems tree gives > facets, and rubyforge as candidates. But that is evaluated > successfully in a void application with no extra libs loaded. > > Any ideas? > > -- fxnThis may help: http://www.w3.org/Protocols/HTTP/HTRESP.html -- 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 -~----------~----~----~----~------~----~------~--~---
On 9/20/07, Xavier Noria <fxn-xlncskNFVEJBDgjK7y7TUQ@public.gmane.org> wrote:> > I noticed by chance that script/console in my machine understands > > HTTP::Status::BAD_REQUEST > > but can''t for the life of me find where''s that defined. A grep in the > Ruby source tree for "BAD_REQUEST" gives cgi.rb (which defines an > unrelated HTTP_STATUS hash), and a grep in my local gems tree gives > facets, and rubyforge as candidates. But that is evaluated > successfully in a void application with no extra libs loaded.It''s coming from http-access2/status.rb, which is in the rubyforge gem, and is being loaded by action_web_service somehow. You can verify this with: $:.grep /rubyforge/ If you disable action_web_service in config/environment.rb, it doesn''t get loaded. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On Sep 20, 2007, at 9:47 PM, Bob Showalter wrote:> On 9/20/07, Xavier Noria <fxn-xlncskNFVEJBDgjK7y7TUQ@public.gmane.org> wrote: >> >> I noticed by chance that script/console in my machine understands >> >> HTTP::Status::BAD_REQUEST >> >> but can''t for the life of me find where''s that defined. A grep in the >> Ruby source tree for "BAD_REQUEST" gives cgi.rb (which defines an >> unrelated HTTP_STATUS hash), and a grep in my local gems tree gives >> facets, and rubyforge as candidates. But that is evaluated >> successfully in a void application with no extra libs loaded. > > It''s coming from http-access2/status.rb, which is in the rubyforge > gem, and is being loaded by action_web_service somehow. > > You can verify this with: > > $:.grep /rubyforge/ > > If you disable action_web_service in config/environment.rb, it doesn''t > get loaded.Wonderful, thank you Bob! -- fxn --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---