Rails 3: How does “accepts_nested_attributes_for” work?
I think that you’re trying to figure out creating a new associated item vs. associating with an existing item. For creating a new item, you seem to have it working. When you passed the id in shop_attributes, it did not work, because it’s looking up an association that doesn’t exist yet. If you’re trying to … Read more