From 53d1779b67bc49cdcf8a60ac4607f9e4f2e66cda Mon Sep 17 00:00:00 2001 From: Juanito Fatas Date: Sun, 22 Sep 2013 19:00:38 +0800 Subject: [ci skip] Add missing migrate step in generating comment resource section. --- guides/source/engines.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'guides/source/engines.md') 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: -- cgit v1.2.3