aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorKuba Brecka <kuba.brecka@gmail.com>2013-02-13 20:57:06 +0100
committerKuba Brecka <kuba.brecka@gmail.com>2013-02-13 20:57:06 +0100
commit0f0803fda5df60319d8646bb4f3e71f2e596316a (patch)
treeba085d10d49aaa26b1d409dbbbadb47813f60c4d /guides
parent09d7eadbead132e77cce22ca9c0e76fa2a29c81a (diff)
downloadrails-0f0803fda5df60319d8646bb4f3e71f2e596316a.tar.gz
rails-0f0803fda5df60319d8646bb4f3e71f2e596316a.tar.bz2
rails-0f0803fda5df60319d8646bb4f3e71f2e596316a.zip
incorrect content of models/comment.rb after 'rails generate'
Diffstat (limited to 'guides')
-rw-r--r--guides/source/getting_started.md2
1 files changed, 2 insertions, 0 deletions
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
```