This problem is very common, but I can not solve it in any way. This is about ruby on rails.
class Product < ApplicationRecord belongs_to :product_shop, optional: true end class ProductShop < ApplicationRecord has_many :products end the compiler complains about this line:
<td><%= product.product_shop.name %></td> Sorry for the banal question, but what could be the error, I just can not figure it out ...
product.product_shopnotproduct.product_shop(equal tonil). - D-side