Forum: Ruby on Rails Help with the Agile Depot application tutorial

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Luciano B. (Guest)
on 2006-01-05 11:59
(Received via mailing list)
anyone can explain me why in the Agile Depot Tutorial application they
use i.product_id
to find if a product already exist in the cart, because the cart
contains items,  each of them references a product.

I tried i.product_id like in the tutorial

all of these 2 notation works , but i find the second seems more
clean??? isn't it.

Any explanation will be fine

This topic is locked and can not be replied to.