First, like everything, scaffolding is a tool, a means to an end. It can be useful, but can also be misused. I can't speak for everyone, but I hate scaffolding because it keeps people from writing tests. Scaffolding generates test stubs, but it leaves the controller tests virtually useless. With scaffolding, it's very hard to do test-driven development - instead, you're retrofitting tests to your existing code.
I've found scaffolding to be extremely helpful for beginners learning Rails, but i've seen too many people rely on it to the point where they can't start without one. That worries me, but it's not necessarily the fault of scaffolding. Now, some aspects of scaffolding used to be pretty bad. The fact that it would iterate over the column names to build table headers was pretty inefficient in a real web app. Some of this has been fixed in recent versions. I've also found that one of the key reasons people scaffold things after they already know Rails is because having something else build the forms for you is really nice. I hate building forms because it's tedius, so I extracted the original "let's look at your database" scaffolding code from Rails 1.2.3 and made it available as a gem that just builds forms from your tables. It's available at http://scaffoldform.rubyforge.org That's just my take on it though. On Wed, Nov 26, 2008 at 2:31 PM, Bobnation <[EMAIL PROTECTED]> wrote: > >> So, the bottom line is that there's nothing fundamentally inept about >> it, and it's all up to how you actually use it, right? > > I would personally agree with that. Your mileage will ALWAYS vary > depending on the weather conditions, type of fuel used, people in the > car, and cargo inside but ... wait, I got off track there. I tend to > use the scaffold to get something up and running and then by the time > I am done I have torn it apart and added my own stuff along with > getting rid of other stuff. > > That is all I really use scaffolding for anymore. When I started, I > thought it was the only way to go but now I end up writing more custom > code than scaffold stuff, but many times I'll end up scaffolding a > resource just to make sure I have my bases covered originally. > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

