Hi everyone, Can anyone help explain what the first set of numbers in WEBrick "Get" calls refers to? For example what is the 500 in the following: "Get /admin HTTP/1.1" 500 10767 Compared to the 200 in the following: "Get /admin HTTP/1.1" 200 485 The only code I have running is the scaffold code that rails creates. I''m guessing that WEBrick is referring to 2 different locations possibly from multiple installs. In more detail: First browser call to /Admin shows correct form; - And WEBrick reports: "Get /admin HTTP/1.1" 200 485 - -> /admin Subsequent browser calls to /Admin show: NoMethodError in AdminController#index undefined method `each'' for #<Mysql:0x37aba80> - And WEBrick reports: "Get /admin HTTP/1.1" 500 10767 - -> /admin First browser call to /Admin/new shows correct form for editing; - And WEBrick reports: "Get /admin/new HTTP/1.1" 200 10767 - -> /admin/new Subsequent browswer calls to /Admin/new show: NoMethodError in AdminController#new undefined method `each'' for #<Mysql:0x376d7e8> RAILS_ROOT: ./script/../config/.. - And WEBrick reports: "Get /admin/new HTTP/1.1" 500 9798 - -> /admin/new So the first calls produce a "Get...200..." and the right browser results. Subsequent calls produce a "Get...500..." and "NoMethodError" Thanks for any input, Joe Noobie -- 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 -~----------~----~----~----~------~----~------~--~---
etlund-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2006-Aug-25 19:21 UTC
Re: WEBrick makes 2 different HTTP calls
I think the numbers your asking about are HTTP status codes. 200 means ''OK'' , 500 is a server error. As far as the problem you''re seeing, I think this was figured out recently: http://groups.google.com/group/rubyonrails-talk/browse_thread/thread/55dd057c41a72fc5/8070e9534998ec8b#8070e9534998ec8b Eric --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On 25/08/06, etlund-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <etlund-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I think the numbers your asking about are HTTP status codes. 200 means > ''OK'' , 500 is a server error.A list of said status codes may be found in RFC2616, section 10 [1] -- Cheers, Hasan Diwan <hasan.diwan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 1. http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---