7 Sep 16:39
Re: Re: rails scaffolding issue
whan you scafolded you didnt spefified the field of the database , the scafold creates empty views in that case , i think you didnt pass the fields because the scaffold fills the migration with them if you do, since i see the migration is empty that mians you did this
script/generate scaffold post
and it should have been
script/generate scaffold post title:string body:text and so on
On Tue, Sep 7, 2010 at 8:37 AM, JuKuen <mario_r1-uiMcrn6V0Vs@public.gmane.org> wrote:
If i understand it right, in new scaffold need to be specified each
column from the existing db?
In my case:
ruby script/generate scaffold Post title:string body:text
author:string status:string created_at:datetime updated_at:datetime
And it will migrate the outside rails made db and will be working as
is needed to be?
Tested it and its working this way. Asking because dont want to learn
it in wrong way.
Used some outdated information.... :(
Thanks
--
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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe <at> googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
--
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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe <at> googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
RSS Feed