Ruby China
  • Topics
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • Sign Up
  • Sign In
贵子
@GuiZi
Member
NO. 28109 / 2016-08-17

shanghai
1 Topics / 3 Replies
0 Followers
2 Following
8 Favorites
GitHub Public Repos
More on GitHub
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • 请问为什么 accepts_nested_attributes_for 在 Rails 5.0.0.1 下不能创建新的关联对象了? at December 21, 2016

    #4 楼 @larrylv 谢谢!

  • 请问为什么 accepts_nested_attributes_for 在 Rails 5.0.0.1 下不能创建新的关联对象了? at December 20, 2016

    #1 楼 @larrylv 非常感谢!

    has_one 和 belongs_to 都加上 inverse_of 后就可以了

    不过看 sgrif 的回答,好像是个 bug,但还是不太明白原因。@larrylv能解释一下吗?谢谢!!

关于 / RubyConf / Ruby 镜像 / RubyGems 镜像 / 活跃会员 / 组织 / API / 贡献者
由众多爱好者共同维护的 Ruby 中文社区,本站使用 Homeland 构建,并采用 Docker 部署。
服务器由 赞助 CDN 由 赞助
iOS 客户端 / Android 客户端 简体中文 / English