aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source/command_line.textile
diff options
context:
space:
mode:
authorvijay <vijaydev.cse@gmail.com>2010-12-10 23:03:31 +0530
committervijay <vijaydev.cse@gmail.com>2010-12-10 23:03:31 +0530
commit6acd1304b15de65e1ab38437357ce63b80f4e7c0 (patch)
treec3dc8d8701a07f3156f8d02d6f2606b23aea159a /railties/guides/source/command_line.textile
parent638b409eb4c75b9187c6cedc9f71e2e38ec84731 (diff)
parentdbf955c03b8d185b7977d90281389cf52d546c5d (diff)
downloadrails-6acd1304b15de65e1ab38437357ce63b80f4e7c0.tar.gz
rails-6acd1304b15de65e1ab38437357ce63b80f4e7c0.tar.bz2
rails-6acd1304b15de65e1ab38437357ce63b80f4e7c0.zip
Merge branch 'master' of github.com:lifo/docrails
Diffstat (limited to 'railties/guides/source/command_line.textile')
-rw-r--r--railties/guides/source/command_line.textile2
1 files changed, 2 insertions, 0 deletions
diff --git a/railties/guides/source/command_line.textile b/railties/guides/source/command_line.textile
index acd105c622..11ce3a5003 100644
--- a/railties/guides/source/command_line.textile
+++ b/railties/guides/source/command_line.textile
@@ -197,6 +197,8 @@ Examples:
Creates a Post model with a string title, text body, and published flag.
</shell>
+NOTE: For a list of available field types, refer to the "API documentation":http://api.rubyonrails.org/classes/ActiveRecord/ConnectionAdapters/TableDefinition.html#method-i-column for the column method for the +TableDefinition+ class.
+
But instead of generating a model directly (which we'll be doing later), let's set up a scaffold. A *scaffold* in Rails is a full set of model, database migration for that model, controller to manipulate it, views to view and manipulate the data, and a test suite for each of the above.
We will set up a simple resource called "HighScore" that will keep track of our highest score on video games we play.