Hi Everyone,
Joe Noobie here trying to do the absolute basic example in Agile Web
Development with Rails Chapt 6.
WEBrick seems to resond to the first request with one set of HTTP
numbers and all subsequent calls got a different set of HTTP numbers:
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 your help,
Joe Noobie