This project is archived and is in readonly mode.
Neset forms and attr_accessible
-
Eloy Duran
It's not a bug. You should consider the addition of nested attributes as a new attribute accessor. So if you are using attr_protected/attr_accessible you need to add the nested attributes writer method as well.
It's the consequence of using attr_protected/attr_accessible, so I'm not sure if it has to be in the docs, although it won't hurt…
-
Dmitry Polushkin
Didn't thought that is a normal behaviour. For me, accepts_nested_attributes_for must add an attribute accessor. +1 for documentation this feature
-
Eloy Duran
Yes it is. See the documentation for ActiveRecord:Base#attributes= http://is.gd/jF81
-
Eloy Duran
- Assigned user set to Eloy Duran
I will add the documentation btw, once I'm done with some code patches.