Mar 01
Custom Scaffold for Rails
Code, Ruby on Rails 19 Comments »
It has been said so many times that scaffold generator is only useful for learning how Rails works and maybe for rapid prototyping and I certainly agree. But scaffold is one of the big things that really excited me when I first discovered Rails.
Why is Scaffold Generated Code Useless?
Actually I think the stubbed out functions in the controller as well as most of the views are already a great time saver but its really the generated list and show code that is useless:
[source:ruby] [/source] Iterating over columns means that I can do nothing but rip this out and explicitly write out each column so I can then change the look and feel to be consistent with my app. Also, what if I want to use div's instead of tables? Rip it apart.
