Ruby on Rails
Tuesday, October 22, 2019
You should use accepts_nested_attributes_for. Look at this link of documentation: https://api.rubyonrails.org/classes/ActiveRecord/NestedAttributes/ClassMethods.html
Em terça-feira, 22 de outubro de 2019 06:55:35 UTC-3, fugee ohu escreveu:
-- Em terça-feira, 22 de outubro de 2019 06:55:35 UTC-3, fugee ohu escreveu:
In my case Item has_many :item_item_propertiesIn form_for item I'm trying to put the field for item_item_properties but rails saysundefined local variable or method `item_item_properties' for #<#<Class:0x00559a982ed898>:
0x00559a97deee50>
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/0af7db7e-f695-40a2-850f-f1df8fa515e7%40googlegroups.com.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment