简体   繁体   English

Rails 2.3.5和Ruby 1.9.1中的accept_nested_attributes_for

[英]accept_nested_attributes_for in Rails 2.3.5 and Ruby 1.9.1

Has accept_nested_attributes_for already works with Rails 2.3.5 and Ruby 1.9.1???? accept_nested_attributes_for是否已与Rails 2.3.5和Ruby 1.9.1一起使用?

I keep getting this error 我不断收到这个错误

undefined method accept_nested_attributes_for' for #<Class:0x00000108da2140>

owh yeah should be accepts_nested_attributes_for (with 's') 是的,应该是accepts_nested_attributes_for(带有's')

Someone should clean up those Google searches! 有人应该清理那些Google搜索!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用accept_nested_attributes_for进行验证 - Validations with accept_nested_attributes_for accept_nested_attributes_for在Rails上创建一个额外的nil记录 - accept_nested_attributes_for creates one extra nil record on Rails Rails属于具有accept_nested_attributes_for的多个模型 - Rails belongs_to multiple models with accept_nested_attributes_for 尽管存在关系,但Rspec +应该在accept_nested_attributes_for上进行测试失败 - Rspec + shoulda test fails on accept_nested_attributes_for despite relationship Mongomapper父模型验证失败,并带有accept_nested_attributes_for - Mongomapper parent model validation fails with accept_nested_attributes_for accept_nested_attributes_for:allow_destroy,:_ destroy无效 - accept_nested_attributes_for :allow_destroy, :_destroy not working 多对多关系中的accept_nested_attributes_for - accept_nested_attributes_for in a many-to-many relationship attr_accessor在accept_nested_attributes_for中无法访问 - attr_accessor not accessible in accept_nested_attributes_for has_one,reject_if和accept_nested_attributes_for仍会触发验证 - has_one, reject_if, and accept_nested_attributes_for still triggers validation accept_nested_attributes_for + reject_if +未保存的子对象的显示错误 - accept_nested_attributes_for + reject_if + display error for unsaved child objects
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM