-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Undefined method 'push_relation' #65
Conversation
…d attributes using has_many relation
@sxross Had you anticipated supporting nested attribute assignments in the array model adapter? |
It's a common request. I think it should be considered. |
@tacticiankerala is this the same as #62? |
Sorry for the confusion. It's the same as the #62. I will change 'all' to 'to_a'. I was under the impression that it is how the library's has_many relation
|
accepts_nested_attributes_for is most certainly an additional feature on top of the associations themselves. Since Rails is so very form-based it makes tons of sense. For RubyMotion, it might be superfluous. I'm not against supporting it, but I do feel that by keeping MotionModel on the leaner side it will be easier to maintain. |
Consider the case where a bunch of data is being retrived from the server -- maybe a Rails server -- in JSON form, with nested attributes. Is that a compelling enough use case? Agreed that this is a feature request. |
That is what exactly is am doing. Also please note that 'push_relation' method is called with out being
|
Yes, I will have to do a git bisect to figure out what's going on here. Not forgetting your issue. |
I was hoping for a spec that would exercise the method that calls it but We should open another issue to request the accepts nested attributes On Jun 28, 2013, at 11:00 AM, Sreenath Nannat [email protected] That is what exactly is am doing. Also please note that 'push_relation' method is called with out being
— |
I came across this particular issue while trying to do nested attribute
|
…rted into proper array by cast_to_array" This reverts commit de3dd8e.
Failing spec for the issue [https://github.com//issues/62]