# Tell me how to rectify this error

**URL:** <https://www.ruby-forum.com/t/tell-me-how-to-rectify-this-error/171558>\
**Category:** Rails\
**Created:** [July 5, 2009, 8:28am UTC](https://www.ruby-forum.com/t/tell-me-how-to-rectify-this-error/171558 "2009-07-05T08:28:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rajendra](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/8e8cbc/32.png) [@rajendra](https://www.ruby-forum.com/u/rajendra)\
**Post date:** [July 5, 2009, 8:28am UTC](https://www.ruby-forum.com/t/tell-me-how-to-rectify-this-error/171558/1 "2009-07-05T08:28:27Z")

</div>

hi i am using this command to scaffold

G:\my\webblog\>ruby script/generate scaffold Comments comments:text

but i got the folllwoing error, can any one help to rectify htis  
problam…

---

<div class="post-metadata">

**Author:** ![rajendra](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/8e8cbc/32.png) [@rajendra](https://www.ruby-forum.com/u/rajendra)\
**Post date:** [July 5, 2009, 10:23pm UTC](https://www.ruby-forum.com/t/tell-me-how-to-rectify-this-error/171558/2 "2009-07-05T22:23:14Z")

</div>

2009/7/5 Rajendra B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> hi i am using this command to scaffold
> 
> G:\my\webblog\>ruby script/generate scaffold Comments comments:text
> 
> ## but i got the folllwoing error, can any one help to rectify htis problam…
> 
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

You don’t seem to have included the error.  
It would be more conventional to have  
ruby script/generate scaffold comment description:string

Note that comment is singular and without upper case (not Comments)  
which will make a model class Comment for a table comments containing  
a text field description. I don’t know whether having a field with  
the same name as the model would cause a problem, but in any case in  
the code if you then have a Comment object @comment then referring to  
@comment.comments is a bit odd. @comments.description or another field  
name that you like seems more natural.

Colin

---

<div class="post-metadata">

**Author:** ![rajendra](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/8e8cbc/32.png) [@rajendra](https://www.ruby-forum.com/u/rajendra)\
**Post date:** [July 5, 2009, 11:24pm UTC](https://www.ruby-forum.com/t/tell-me-how-to-rectify-this-error/171558/3 "2009-07-05T23:24:34Z")

</div>

2009/7/5 Colin L. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> name that you like seems more natural.
> 
> Colin

Sorry I am getting it wrong myself now, it should be  
ruby script/generate scaffold Comment description:text

Colin
