From 0f0803fda5df60319d8646bb4f3e71f2e596316a Mon Sep 17 00:00:00 2001 From: Kuba Brecka Date: Wed, 13 Feb 2013 20:57:06 +0100 Subject: incorrect content of models/comment.rb after 'rails generate' --- guides/source/getting_started.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/guides/source/getting_started.md b/guides/source/getting_started.md index c394f30c38..f1c390570c 100644 --- a/guides/source/getting_started.md +++ b/guides/source/getting_started.md @@ -1240,6 +1240,7 @@ First, take a look at `app/models/comment.rb`: ```ruby class Comment < ActiveRecord::Base belongs_to :post + attr_accessible :body, :commenter end ``` @@ -1302,6 +1303,7 @@ makes each comment belong to a Post: ```ruby class Comment < ActiveRecord::Base belongs_to :post + attr_accessible :body, :commenter end ``` -- cgit v1.2.3