diff options
author | Steve Klabnik <steve@steveklabnik.com> | 2013-03-29 16:28:04 -0700 |
---|---|---|
committer | Steve Klabnik <steve@steveklabnik.com> | 2013-03-29 16:28:04 -0700 |
commit | bac6928eefffcacc84887aec9a81ec2e642ab42d (patch) | |
tree | 344417b08e0917fe99f3edbcd05f66d09cd1f769 /railties/guides/source/getting_started.textile | |
parent | e06b4fab8e77f36e534804780eb80eae46587a4a (diff) | |
download | rails-bac6928eefffcacc84887aec9a81ec2e642ab42d.tar.gz rails-bac6928eefffcacc84887aec9a81ec2e642ab42d.tar.bz2 rails-bac6928eefffcacc84887aec9a81ec2e642ab42d.zip |
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.
Diffstat (limited to 'railties/guides/source/getting_started.textile')
-rw-r--r-- | railties/guides/source/getting_started.textile | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/railties/guides/source/getting_started.textile b/railties/guides/source/getting_started.textile index c32a23c50b..99409edbd0 100644 --- a/railties/guides/source/getting_started.textile +++ b/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> |