This project is archived and is in readonly mode.
Comments and changes to this ticket
-
Eloy Duran February 8th, 2009 @ 01:40 PM
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 February 15th, 2009 @ 09:41 PM
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 February 16th, 2009 @ 08:17 AM
Yes it is. See the documentation for ActiveRecord:Base#attributes= http://is.gd/jF81
-
Eloy Duran February 17th, 2009 @ 08:32 AM
- Assigned user set to Eloy Duran
I will add the documentation btw, once I'm done with some code patches.
-
Michael Koziarski February 22nd, 2009 @ 02:29 AM
- State changed from new to resolved
This should be taken care of via docrails.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>