aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorAndrea <andrea.damico@gmail.com>2013-04-05 19:21:52 +0300
committerAndrea <andrea.damico@gmail.com>2013-04-05 19:21:52 +0300
commit107d199c45b15c9e54e5f0a5560fa47ccd3695a6 (patch)
treecead1947fbbef8b8c5812536e9f27aa553cf17d2 /guides
parent9d62ebb0d025150aa685845bb482deeafc65af9c (diff)
downloadrails-107d199c45b15c9e54e5f0a5560fa47ccd3695a6.tar.gz
rails-107d199c45b15c9e54e5f0a5560fa47ccd3695a6.tar.bz2
rails-107d199c45b15c9e54e5f0a5560fa47ccd3695a6.zip
Remove deprecated attr_accessible mention
Diffstat (limited to 'guides')
-rw-r--r--guides/source/form_helpers.md5
1 files changed, 1 insertions, 4 deletions
diff --git a/guides/source/form_helpers.md b/guides/source/form_helpers.md
index 3f16ebcf1d..cf5bc972a3 100644
--- a/guides/source/form_helpers.md
+++ b/guides/source/form_helpers.md
@@ -836,17 +836,14 @@ Active Record provides model level support via the `accepts_nested_attributes_f
class Person < ActiveRecord::Base
has_many :addresses
accepts_nested_attributes_for :addresses
-
- attr_accessible :name, :addresses_attributes
end
class Address < ActiveRecord::Base
belongs_to :person
- attr_accessible :kind, :street
end
```
-This creates an `addresses_attributes=` method on `Person` that allows you to create, update and (optionally) destroy addresses. When using `attr_accessible` or `attr_protected` you must mark `addresses_attributes` as accessible as well as the other attributes of `Person` and `Address` that should be mass assigned.
+This creates an `addresses_attributes=` method on `Person` that allows you to create, update and (optionally) destroy addresses.
### Building the Form