Hi,
To get the store (chpt. 6) up and running with Rails 2.x, you need to do the following:
Don't create the sql databases as instructed, instead change to your rubydev directoy (or wherever you are storing your rails projects) and type:
change to the store directory (eg with cd store)
type:
Code:
ruby script/generate scaffold Item name:string description:text price:float
Then edit the config/database.yml file, adding your sql password where appropriate.
Then back to the console and type:
Code:
rake db:create:all
rake db:migrate
That's it.
You have created a model called "Item", a database table in store_development called "items" and a controller called "ItemController"
You can add records to the database under the url:
http://localhost:3000/items
The rest should be straight forward.
Hope this helps somebody.
P.S. Running Rails 2.x, MySQL version 5.x and Ubuntu Linux