I need to return a product title from an id. I’ve tried the following…
<%= Product.where( ['id =?', iu.product_id ]).select('title') %>
but it gives me a reference...
#<Product::ActiveRecord_Relation:0x007faca389eca0>
I've tried a number of things.
Any hints?
Thanks,
Joe