2009/7/5 Rajendra Bayana <[email protected]>:
>
> 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/.

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

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to