aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source
diff options
context:
space:
mode:
authorJason Noble & Ralph Shnelvar <perlwizard@gmail.com>2011-07-24 16:28:57 -0600
committerJason Noble & Ralph Shnelvar <perlwizard@gmail.com>2011-07-24 16:37:27 -0600
commit1ca4990a1028c1c3531819fa50b7f3c07eb32aca (patch)
tree4a2bd0d7bd41fe47f25e5481381fe1b028f9b1c5 /railties/guides/source
parent62f865db0be30bbc20feb5c3428d00c41e85f070 (diff)
downloadrails-1ca4990a1028c1c3531819fa50b7f3c07eb32aca.tar.gz
rails-1ca4990a1028c1c3531819fa50b7f3c07eb32aca.tar.bz2
rails-1ca4990a1028c1c3531819fa50b7f3c07eb32aca.zip
Extend description of rails generate scaffold and what it's options accomplish
Diffstat (limited to 'railties/guides/source')
-rw-r--r--railties/guides/source/getting_started.textile4
1 files changed, 4 insertions, 0 deletions
diff --git a/railties/guides/source/getting_started.textile b/railties/guides/source/getting_started.textile
index 41af90e720..a44222a441 100644
--- a/railties/guides/source/getting_started.textile
+++ b/railties/guides/source/getting_started.textile
@@ -535,6 +535,10 @@ command in your terminal:
$ rails generate scaffold Post name:string title:string content:text
</shell>
+This will create a new database table called posts (plural of Post). The table
+will have three columns, name (type string), title (type string) and content
+(type text). It will also hook this new database up to Rails (details below).
+
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