# Scaffold does not work

**URL:** <https://www.ruby-forum.com/t/scaffold-does-not-work/87565>\
**Category:** Rails\
**Created:** [March 4, 2007, 12:17am UTC](https://www.ruby-forum.com/t/scaffold-does-not-work/87565 "2007-03-04T00:17:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hvenkata](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/c89c15/32.png) [@hvenkata](https://www.ruby-forum.com/u/hvenkata)\
**Post date:** [March 4, 2007, 12:17am UTC](https://www.ruby-forum.com/t/scaffold-does-not-work/87565/1 "2007-03-04T00:17:10Z")

</div>

I am going through the Agile Web D. with Rails book and  
following the creation of depot app.

On page 77 in the second edition i run the ruby script/generate scaffold  
product admin command.

After the auto generated files are created. When i test the interface i  
the Edit, New Product and Destroy link does not work.

When i click on the New Product link i do not see a form where i can  
enter the information for the new products.

When i click on the Edit link i do not see the form in the edit mode.

When i click on the Delete the javascript pop up ask me to say ok or  
cancel, when i clik the ok nothing happens. The product does not get  
removed.

I am unable to see any error message either.

Any ideas as to what i am doing wrong?

---

<div class="post-metadata">

**Author:** ![hvenkata](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/c89c15/32.png) [@hvenkata](https://www.ruby-forum.com/u/hvenkata)\
**Post date:** [March 4, 2007, 3:35pm UTC](https://www.ruby-forum.com/t/scaffold-does-not-work/87565/2 "2007-03-04T15:35:03Z")

</div>

Hi, you’ll need to take a look at the development.log located in the  
log’s directory. Please provide post the relevant details here.

-Conrad

---

<div class="post-metadata">

**Author:** ![hvenkata](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/c89c15/32.png) [@hvenkata](https://www.ruby-forum.com/u/hvenkata)\
**Post date:** [March 4, 2007, 3:38pm UTC](https://www.ruby-forum.com/t/scaffold-does-not-work/87565/3 "2007-03-04T15:38:03Z")

</div>

Hi, when you attempt to these actions within the browser, did run the  
following command within the root of your rails app:

script/server webrick

or

script/server

-Conrad

---

<div class="post-metadata">

**Author:** ![hvenkata](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/c89c15/32.png) [@hvenkata](https://www.ruby-forum.com/u/hvenkata)\
**Post date:** [March 4, 2007, 6:13pm UTC](https://www.ruby-forum.com/t/scaffold-does-not-work/87565/4 "2007-03-04T18:13:27Z")

</div>

Actually rebooting the server fixed the problem.

Cheers  
Hari

Hari Venkata wrote:

> I am going through the Agile Web D. with Rails book and  
> following the creation of depot app.
> 
> On page 77 in the second edition i run the ruby script/generate scaffold  
> product admin command.
> 
> After the auto generated files are created. When i test the interface i  
> the Edit, New Product and Destroy link does not work.
> 
> When i click on the New Product link i do not see a form where i can  
> enter the information for the new products.
> 
> When i click on the Edit link i do not see the form in the edit mode.
> 
> When i click on the Delete the javascript pop up ask me to say ok or  
> cancel, when i clik the ok nothing happens. The product does not get  
> removed.
> 
> I am unable to see any error message either.
> 
> Any ideas as to what i am doing wrong?
