# Problem with scaffold

**URL:** <https://www.ruby-forum.com/t/problem-with-scaffold/149336>\
**Category:** Rails\
**Created:** [September 23, 2008, 8:04pm UTC](https://www.ruby-forum.com/t/problem-with-scaffold/149336 "2008-09-23T20:04:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![adolf](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/9dc877/32.png) [@adolf](https://www.ruby-forum.com/u/adolf)\
**Post date:** [September 23, 2008, 8:04pm UTC](https://www.ruby-forum.com/t/problem-with-scaffold/149336/1 "2008-09-23T20:04:02Z")

</div>

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](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

---

<div class="post-metadata">

**Author:** ![adolf](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/9dc877/32.png) [@adolf](https://www.ruby-forum.com/u/adolf)\
**Post date:** [September 23, 2008, 8:48pm UTC](https://www.ruby-forum.com/t/problem-with-scaffold/149336/2 "2008-09-23T20:48:54Z")

</div>

Hi Adolf,

Adolf C. 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 D. 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

> **[Pragmatic Bookshelf: By Developers, For Developers](https://pragprog.com)**
>
> We improve the lives of professional developers. We create timely, practical books on classic and cutting-edge topics to help you learn and practice your craft, and accelerate your career. Come learn with us.

-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](http://rubyforge.org/frs/?group_id=904)

HTH,  
Bill

---

<div class="post-metadata">

**Author:** ![adolf](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/9dc877/32.png) [@adolf](https://www.ruby-forum.com/u/adolf)\
**Post date:** [September 23, 2008, 9:07pm UTC](https://www.ruby-forum.com/t/problem-with-scaffold/149336/3 "2008-09-23T21:07:24Z")

</div>

Bill W. wrote:

> Hi Adolf,
> 
> Adolf C. 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 D. 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  
> [Pragmatic Bookshelf: By Developers, For Developers](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](http://rubyforge.org/frs/?group_id=904)
> 
> HTH,  
> Bill

Hi Bill

thanks for the clarification, yes indeed am running rails 2.1.  
now exactly what to do thanks very much.
