CSC/ECE 517 Fall 2009/wiki1b 9 ad: Difference between revisions
No edit summary |
No edit summary |
||
Line 8: | Line 8: | ||
Dynamic Scaffolding of Rails 1.x was replaced by a generator of scaffolds in Rails 2. | Dynamic Scaffolding of Rails 1.x was replaced by a generator of scaffolds in Rails 2. | ||
[http://en.wikipedia.org/wiki/David_Heinemeier_Hansson David Heinemeier Hansson] [http://www.ruby-forum.com/topic/151197#667127 responding] to a new rails developer on a Ruby forum said "Dynamic Scaffolding didn't really help people learn about Rails or give them a way to modify the generated interface, so we killed it." | [http://en.wikipedia.org/wiki/David_Heinemeier_Hansson David Heinemeier Hansson] [http://www.ruby-forum.com/topic/151197#667127 responding] to a new rails developer on a Ruby forum said "Dynamic Scaffolding didn't really help people learn about Rails or give them a way to modify the generated interface, so we killed it.". | ||
In dynamic scaffolding when the line ''scaffold :model_name '' is added to the controller ruby automatically generates the appropriate interfaces at run time. Since, scaffolding is implemented at run time the programmer cannot easily modify and customize the interfaces. |
Revision as of 21:48, 19 September 2009
Scaffolding in web application frameworks
Scaffolding is a meta-programming method of building database-backed software applications. It is a technique that allows a programmer to qickly generate a skeleton interface that allows the user to perform basic CRUD ( Create Read Update Delete) operations on the application's database. The auto-generated interface can then me modified to perform more powerful tasks.
Why was dynamic scaffolding removed in Rails 2?
Dynamic Scaffolding of Rails 1.x was replaced by a generator of scaffolds in Rails 2.
David Heinemeier Hansson responding to a new rails developer on a Ruby forum said "Dynamic Scaffolding didn't really help people learn about Rails or give them a way to modify the generated interface, so we killed it.". In dynamic scaffolding when the line scaffold :model_name is added to the controller ruby automatically generates the appropriate interfaces at run time. Since, scaffolding is implemented at run time the programmer cannot easily modify and customize the interfaces.