# How to overwrite old scaffold to new one

**URL:** <https://www.ruby-forum.com/t/how-to-overwrite-old-scaffold-to-new-one/156381>\
**Category:** Ruby\
**Created:** [December 26, 2008, 8:17am UTC](https://www.ruby-forum.com/t/how-to-overwrite-old-scaffold-to-new-one/156381 "2008-12-26T08:17:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vikas](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/ac91a4/32.png) [@vikas](https://www.ruby-forum.com/u/vikas)\
**Post date:** [December 26, 2008, 8:17am UTC](https://www.ruby-forum.com/t/how-to-overwrite-old-scaffold-to-new-one/156381/1 "2008-12-26T08:17:52Z")

</div>

Hello all,

I am new to ruby development, so please me, and give me solution.

I am trying to develop simple shoppingcart application.

1. created rails application by

projects\>rails ShoppingCart

1. then created database for shopping cart table-products

fields are- id, title, description, price, expiredate

1. created one Product scaffold by

projects\>ShoppingCart\>ruby script/generate scaffold Product title:string  
description:text price:decimal expiredate:datetime

4)then i browse and did some new, edit, delete operations.

1. Now i want to add one field to my products table- image\_url.  
then fields are- id, title, description, price, expiredate, image\_url.

I want to overwrite Product sacffold so that when i browse products page  
it should display me added field i.e image\_url.

give me steps to solve this problem.

Vikas

---

<div class="post-metadata">

**Author:** ![vikas](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/ac91a4/32.png) [@vikas](https://www.ruby-forum.com/u/vikas)\
**Post date:** [December 26, 2008, 12:44pm UTC](https://www.ruby-forum.com/t/how-to-overwrite-old-scaffold-to-new-one/156381/2 "2008-12-26T12:44:24Z")

</div>

Hello man,  
This link [http://www.netbeans.org/kb/docs/ruby/rapid-ruby-weblog.html](http://www.netbeans.org/kb/docs/ruby/rapid-ruby-weblog.html)  
have  
exactly what you want  
(i hope 🙂 )

Regards,

- tiago

On Fri, 26 Dec 2008 16:17:46 +0900, Vikas G. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
