Hi, In regards to the automatic scaffolding that rails builds, could someone explain the need to rework/rewrite the code it generates? The book states that in most cases you would want to rewrite the scaffolding. Aside from the presentation layer - why would the guts need to be done if it works? Is it inefficient? I''m planning on building a friend''s company web site with Rails for my first Rails project. He is going to need an admin back end to do some mundane tasks like add news items and white papers and possibly to edit home page text (kind of a mini-cms - it''s an extremely small brochureware site). It seems that for the back end stuff, what scaffolding supplies would be good enough unless I am missing something... Thanks! Tom http://www.pixelmech.com/ A man spoke frantically into the phone: "My wife is pregnant and her contractions are only two minutes apart"! "Is this her first child?" the doctor asked. "No, you idiot!" the man shouted. "This is her husband!" Q: What do you call a muddy chicken who crossed the road two times? A: A dirty double crosser...
Tom, Virtually *all* applications require at least some customization to make them work well for a specific task. Just like an application storing songs in a music library would behave differently than a program that tracks bug reports. Scaffolding isn't there to make a ready-made app for you, it's there as a starting point to get you coding quickly. Jacob On 10/22/05, Tom Dell'Aringa <pixelmech@yahoo.com> wrote:> Hi, > > In regards to the automatic scaffolding that rails builds, could someone explain the need to > rework/rewrite the code it generates? The book states that in most cases you would want to rewrite > the scaffolding. Aside from the presentation layer - why would the guts need to be done if it > works? Is it inefficient? > > I'm planning on building a friend's company web site with Rails for my first Rails project. He is > going to need an admin back end to do some mundane tasks like add news items and white papers and > possibly to edit home page text (kind of a mini-cms - it's an extremely small brochureware site). > > It seems that for the back end stuff, what scaffolding supplies would be good enough unless I am > missing something... > > Thanks! > > Tom > > > http://www.pixelmech.com/ > > A man spoke frantically into the phone: "My wife is pregnant and her contractions are only two minutes apart"! "Is this her first child?" the doctor asked. "No, you idiot!" the man shouted. "This is her husband!" > > Q: What do you call a muddy chicken who crossed the road two times? > A: A dirty double crosser... > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >_______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
On Oct 22, 2005, at 12:19 PM, Tom Dell''Aringa wrote:> In regards to the automatic scaffolding that rails builds, could > someone explain the need to > rework/rewrite the code it generates? The book states that in most > cases you would want to rewrite > the scaffolding. Aside from the presentation layer - why would the > guts need to be done if it > works? Is it inefficient?The purpose of scaffolding is to get a quick-and-dirty UI going so that you can play around with the front end while you''re maybe still making changes on the back end. Because of the way scaffolding works, when the back end changes, so will the front end.> I''m planning on building a friend''s company web site with Rails for > my first Rails project. He is > going to need an admin back end to do some mundane tasks like add > news items and white papers and > possibly to edit home page text (kind of a mini-cms - it''s an > extremely small brochureware site). > > It seems that for the back end stuff, what scaffolding supplies > would be good enough unless I am > missing something...Scaffolding doesn''t take care of a lot of relationship stuff automatically, which you may well need. -- _Deirdre http://deirdre.net