problem with scaffold

am trying to follow the outlined steps in Agile web
development with rails book(1st edition) to develop a shopping
cart named depot.

after this command, ruby script/generate scaffold Product Admin
which is supposed to write a basic maintenance application,from
the explanations of the book when i access this address
http://localhost:3000/admin the list of products needs to be
seen but that is not what i get, and it looks like the above
command did not even create admin controller in my machine.

help please.

am using rails 2.1 and ruby 1.8.6

Hi Adolf,

Adolf Charles wrote:

after this command, ruby script/generate scaffold Product Admin
which is supposed to write a basic maintenance application,from

Just a guess here, but I'll bet you're running Rails 2.x.

Agile Web Development with Rails (AWDWR) 1st edition was written for Rails
1.2.x. If you're determined to start with Rails 2.x, the third edition of
AWDWR is coming out soon and the PDF version is already available. See
http://www.pragprog.com/titles/rails3/agile-web-development-with-rails-third
-edition

Alternatively, you can drop back to Rails 1.2.x and get an understanding of
the basics of Rails, then move forward to Rails 2.x and learn about REST and
the Rails routing engine. If you're on Windows, I recommend InstantRails
(version 1.7) as an easy starting point. It's at
http://rubyforge.org/frs/?group_id=904

HTH,
Bill