is there anyway that scaffold would read the database and I don''t have to specify any of the columns? it is really frustraiting specially when you''ve got a lotta cols and tables! I''d like to use rails for an enterprise app but not a toy app like all those apps in tutorials -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Mon, Jun 30, 2008 at 4:51 PM, Luis Ramirez <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > is there anyway that scaffold would read the database and I don''t have > to specify any of the columns? it is really frustraiting specially when > you''ve got a lotta cols and tables! I''d like to use rails for an > enterprise app but not a toy app like all those apps in tutorialsEnterprise apps don''t usually use scaffolds. -- Greg Donald http://destiney.com/ --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Scaffolds will give you forms and indexes for all columns in the database. This is a bit of overhead since you are going to have to delete plenty of code one you use your scaffolds since ALL columns will be listed in the index and ALL columns will be editable in the forms. i have never seen a project that desires such functionality. Thats why i agree with Greg. ps: What is the difference between enterprise rails apps and tutorial toys, apart from the number of columns...?? On Jun 30, 10:51 pm, Luis Ramirez <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> is there anyway that scaffold would read the database and I don''t have > to specify any of the columns? it is really frustraiting specially when > you''ve got a lotta cols and tables! I''d like to use rails for an > enterprise app but not a toy app like all those apps in tutorials > -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
KathysKode-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2008-Jul-01 13:34 UTC
Re: scaffold usage
Luis, I use the scaffold for ALL projects and don''t have a problem with the fields as I use DBDesigner to create my schemas before I go into production. This free tool allows me to copy all fields in a table to my clipboard. Then in the Netbeans 6.1 scaffold call I simply paste the fields in and then decide the types ( ex: :integer, :string: ). Hope this helps. Kathleen On Jul 1, 6:42 am, "\"Wolas!\"" <jcpen...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Scaffolds will give you forms and indexes for all columns in the > database. This is a bit of overhead since you are going to have to > delete plenty of code one you use your scaffolds since ALL columns > will be listed in the index and ALL columns will be editable in the > forms. i have never seen a project that desires such functionality. > Thats why i agree with Greg. > > ps: What is the difference between enterprise rails apps and tutorial > toys, apart from the number of columns...?? > > On Jun 30, 10:51 pm, Luis Ramirez <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> > wrote: > > > > > is there anyway that scaffold would read the database and I don''t have > > to specify any of the columns? it is really frustraiting specially when > > you''ve got a lotta cols and tables! I''d like to use rails for an > > enterprise app but not a toy app like all those apps in tutorials > > -- > > Posted viahttp://www.ruby-forum.com/.- Hide quoted text - > > - Show quoted text ---~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---