I appreciate any help you can give me on this.
Say you have categories and products. Category has many products. So you
do the following
c = Category.new
p = c.products.build
p.category_id is already set. Say you had an attribute called “key” for
products. How would you get key to be automatically set to whatever you
want when the product is built off of a category?
Thanks!