Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

[engines guide] make clear that the comment generator command is just…

… one line
  • Loading branch information...
commit 2c8b8ce9eebce7f128d1811dde71f854fa8806c3 1 parent 2101bc9
@radar radar authored
Showing with 11 additions and 6 deletions.
  1. +11 −6 railties/guides/source/engines.textile
17 railties/guides/source/engines.textile
@@ -212,12 +212,17 @@ Run the model generator and tell it to generate a +Comment+ model, with the rela
$ 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
+This will output the following:
+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
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+.
Please sign in to comment.
Something went wrong with that request. Please try again.