Skip to content

Commit

Permalink
Adding information and link to guide on customizing generators into "…
Browse files Browse the repository at this point in the history
…Getting Started" guide.
  • Loading branch information
karmi committed Dec 28, 2010
1 parent 8031b7e commit cb4b5c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion railties/guides/source/getting_started.textile
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down

0 comments on commit cb4b5c8

Please sign in to comment.