Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ROR: To scaffold or not?

I love scaffolding and it extremely helpful for prototyping. But Should we use scaffolding for developing application as such?

like image 537
welllifeisunfair Avatar asked Dec 18 '22 09:12

welllifeisunfair


1 Answers

The name "scaffolding" is sort of a misnomer in Rails now (post 2.0). The structure generated through scaffolding generator is more of a base application to build on, rather than a "prototype" that you throw away later.

At least, if you are designing your application to be RESTful, you will find yourself keeping most of the scaffold generator produced controller and model code, while adding more logic to them. You will perhaps replace the views eventually while keeping bits and pieces of Ruby code in them.

like image 51
Amit K Mathur Avatar answered Jan 03 '23 08:01

Amit K Mathur