Skip to content
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

HasMany association is not associate primary key after build #11158

Closed
manzhikov opened this issue Jun 28, 2013 · 8 comments
Closed

HasMany association is not associate primary key after build #11158

manzhikov opened this issue Jun 28, 2013 · 8 comments

Comments

@manzhikov
Copy link

For example

rails '4.0.0'

Article.find(1).comments.build
 => #<Comment id: nil, article_id: 0, body: nil, created_at: nil, updated_at: nil>

rails '3.2.13'

Article.find(1).comments.build
 => #<Comment id: nil, article_id: 1, body: nil, created_at: nil, updated_at: nil>
@manzhikov
Copy link
Author

With clean rails it is working fine. Seems like problem with some other gem. I will dig more into it.

@arunagw
Copy link
Member

arunagw commented Jun 28, 2013

thanks

@shioyama
Copy link
Contributor

shioyama commented Jul 8, 2013

I'm observing the exact same issue working on updating globalize3 for rails4. Not sure yet what is triggering it, but it was working fine in 3.2.x.

@manzhikov
Copy link
Author

@shioyama yes, the problem in globalize3 for rails4.

@shioyama
Copy link
Contributor

shioyama commented Jul 8, 2013

@manzhikov oh ok, then we're dealing with the same problem. If I figure it out I'll let you know.

@shioyama
Copy link
Contributor

shioyama commented Jul 8, 2013

This is the same issue: https://github.com/svenfuchs/globalize3/issues/244

@manzhikov
Copy link
Author

@shioyama Thanks!

@shioyama
Copy link
Contributor

shioyama commented Jul 9, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants