diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-09-22 10:18:03 -0700 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-09-22 10:18:03 -0700 |
commit | d61eaed82b7a8f5254cfef20cbbdc968b8939d78 (patch) | |
tree | bdbcbddfb8ca0dd7e03dd8dfd44ce1136ee84335 /guides | |
parent | 80008352675add5a6b4aaded715fc02329a02004 (diff) | |
parent | 53d1779b67bc49cdcf8a60ac4607f9e4f2e66cda (diff) | |
download | rails-d61eaed82b7a8f5254cfef20cbbdc968b8939d78.tar.gz rails-d61eaed82b7a8f5254cfef20cbbdc968b8939d78.tar.bz2 rails-d61eaed82b7a8f5254cfef20cbbdc968b8939d78.zip |
Merge pull request #12316 from JuanitoFatas/engines
[ci skip] Add missing migrate step in generating comment resource section.
Diffstat (limited to 'guides')
-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: |