Permalink
Browse files

Add attr_accessible to the Getting Started Guide.

This was brought up in #9995, but is only present in 3-2-stable, since
mass assignment is removed from Rails 4.
  • Loading branch information...
1 parent e06b4fa commit bac6928eefffcacc84887aec9a81ec2e642ab42d @steveklabnik steveklabnik committed Mar 29, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 railties/guides/source/getting_started.textile
@@ -1153,6 +1153,7 @@ First, take a look at +comment.rb+:
<ruby>
class Comment < ActiveRecord::Base
+ attr_accesssible :body, :commenter, :post
belongs_to :post
end
</ruby>
@@ -1215,6 +1216,7 @@ makes each comment belong to a Post:
<ruby>
class Comment < ActiveRecord::Base
+ attr_accessible :body, :commenter, :post
belongs_to :post
end
</ruby>

0 comments on commit bac6928

Please sign in to comment.