mirror of https://github.com/rails/rails
Adding information and link to guide on customizing generators into "Getting Started" guide.
This commit is contained in:
parent
8031b7e42b
commit
cb4b5c8ad3
|
@ -349,7 +349,7 @@ In the case of the blog application, you can start by generating a scaffolded Po
|
|||
$ rails generate scaffold Post name:string title:string content:text
|
||||
</shell>
|
||||
|
||||
NOTE. While scaffolding will get you up and running quickly, the "one size fits all" code that it generates is unlikely to be a perfect fit for your application. In most cases, you'll need to customize the generated code. Many experienced Rails developers avoid scaffolding entirely, preferring to write all or most of their source code from scratch.
|
||||
NOTE. While scaffolding will get you up and running quickly, the code it generates is unlikely to be a perfect fit for your application. You'll most probably want to customize the generated code. Many experienced Rails developers avoid scaffolding entirely, preferring to write all or most of their source code from scratch. Rails, however, makes it really simple to customize templates for generated models, controllers, views and other source files. You'll find more information in the "Creating and Customizing Rails Generators & Templates":generators.html guide.
|
||||
|
||||
The scaffold generator will build 15 files in your application, along with some folders, and edit one more. Here's a quick overview of what it creates:
|
||||
|
||||
|
|
Loading…
Reference in New Issue