Ruby on Rails
Tuesday, October 22, 2019
On Tuesday, October 22, 2019 at 11:46:13 AM UTC-4, mattz wrote:
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: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>
Thanks Decided to watch a couple youtube videos on forms for has_many_through's
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/a6a96876-b325-4fa4-ae5e-dadbd7f45474%40googlegroups.com.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment