Joe Surname
2006-Aug-14 23:04 UTC
[Rails] AWDWR Chpt6: Webrick Get...200... then ...500...
Hi, Rails produces to diff Gets on the Webrick: AWDWR Chpt 6 strange results: 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 your help, Joe -- Posted via http://www.ruby-forum.com/.
Joe Surname
2006-Aug-14 23:30 UTC
[Rails] Re: AWDWR Chpt6: Webrick Get...200... then ...500...
My AdminController class: def index list render :action => ''list'' end def new @product = Product.new end My routes.rb: map.connect '':controller/service.wsdl'', :action => ''wsdl'' map.connect '':controller/:action/:id'' -- Posted via http://www.ruby-forum.com/.
Apparently Analagous Threads
- XCP - license expiry problem - http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1756 not fixed?
- AWDWR: NameError (uninitialized constant UnknownAction) in rescue_action_in_public
- No route matches with {:method=>:get} Error in AWDWR Book
- New version of the AWDwR beta book available
- (P)review of AWDwR and R4R