diff options
author | Juanito Fatas <katehuang0320@gmail.com> | 2013-09-22 19:00:38 +0800 |
---|---|---|
committer | Juanito Fatas <katehuang0320@gmail.com> | 2013-09-22 19:00:38 +0800 |
commit | 53d1779b67bc49cdcf8a60ac4607f9e4f2e66cda (patch) | |
tree | bdbcbddfb8ca0dd7e03dd8dfd44ce1136ee84335 /guides/source | |
parent | 80008352675add5a6b4aaded715fc02329a02004 (diff) | |
download | rails-53d1779b67bc49cdcf8a60ac4607f9e4f2e66cda.tar.gz rails-53d1779b67bc49cdcf8a60ac4607f9e4f2e66cda.tar.bz2 rails-53d1779b67bc49cdcf8a60ac4607f9e4f2e66cda.zip |
[ci skip] Add missing migrate step in generating comment resource section.
Diffstat (limited to 'guides/source')
-rw-r--r-- | guides/source/engines.md | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/guides/source/engines.md b/guides/source/engines.md index 48d2949539..c71b728ef7 100644 --- a/guides/source/engines.md +++ b/guides/source/engines.md @@ -307,7 +307,11 @@ create test/models/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`. +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`. Now run the migration to create our blorgh_comments table: + +```bash +$ rake db:migrate +``` To show the comments on a post, edit `app/views/blorgh/posts/show.html.erb` and add this line before the "Edit" link: |