Permalink
Browse files

Remove deprecated attr_accessible mention

  • Loading branch information...
1 parent 9d62ebb commit 107d199c45b15c9e54e5f0a5560fa47ccd3695a6 @adamico adamico committed Apr 5, 2013
Showing with 1 addition and 4 deletions.
  1. +1 −4 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

0 comments on commit 107d199

Please sign in to comment.