Rails 3 Generators: Scaffolding
Scaffolding in Rails has always been a little controversial. Originally, it was responsible for a lot of Rails’s wow factor – DHH’s blog in fifteen minutes was built on scaffolding. Over time, however, it became less clear whether it was supposed to be used for production code, or if it was intended to educate new Rails developers on best practices.
After a few discussions through various channels, the core team eventually settled on the latter – scaffolding was supposed to be educational, illustrating the best practices around RESTful controllers and other Rails conventions. Even with that goal, however, there’s still been some difficulty around updating the scaffolded views to teach people how best to, for instance, split files into partials.

Recent Comments
Thank you very much Tony, I used the same and it worked.