aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides
diff options
context:
space:
mode:
authorRyan Bigg <radarlistener@gmail.com>2011-10-14 07:51:45 +1100
committerRyan Bigg <radarlistener@gmail.com>2011-10-14 18:44:39 +1100
commit2c8b8ce9eebce7f128d1811dde71f854fa8806c3 (patch)
tree22b41cc5482cec668eecb9fc628750492bcb17fc /railties/guides
parent2101bc9fd00f284ee5f86e72f35df9937289871b (diff)
downloadrails-2c8b8ce9eebce7f128d1811dde71f854fa8806c3.tar.gz
rails-2c8b8ce9eebce7f128d1811dde71f854fa8806c3.tar.bz2
rails-2c8b8ce9eebce7f128d1811dde71f854fa8806c3.zip
[engines guide] make clear that the comment generator command is just one line
Diffstat (limited to 'railties/guides')
-rw-r--r--railties/guides/source/engines.textile17
1 files changed, 11 insertions, 6 deletions
diff --git a/railties/guides/source/engines.textile b/railties/guides/source/engines.textile
index 0df3889193..f642781c04 100644
--- a/railties/guides/source/engines.textile
+++ b/railties/guides/source/engines.textile
@@ -212,12 +212,17 @@ Run the model generator and tell it to generate a +Comment+ model, with the rela
<shell>
$ rails generate model Comment post_id:integer text:text
- invoke active_record
- create db/migrate/[timestamp]_create_blorgh_comments.rb
- create app/models/blorgh/comment.rb
- invoke test_unit
- create test/unit/blorgh/comment_test.rb
- create test/fixtures/blorgh/comments.yml
+</shell>
+
+This will output the following:
+
+<shell>
+invoke active_record
+create db/migrate/[timestamp]_create_blorgh_comments.rb
+create app/models/blorgh/comment.rb
+invoke test_unit
+create test/unit/blorgh/comment_test.rb
+create test/fixtures/blorgh/comments.yml
</shell>
This generator call will generate just the necessary model files it needs, namespacing the files under a +blorgh+ directory and creating a model class called +Blorgh::Comment+.