I"m a Nuby so I could be wrong…
What this code is doing is just checking for the existence of a
product corresponding to the value stored in “i”. It doesn’t matter
what attribute of that product you ask for, the result will be the
same. Presuming products have a name attribute, you could as easily
and get the same result.
product_id is one of those amazing Rails freebies that just makes
good coding sense to use.
At least that’s my take.
On Jan 5, 2006, at 1:53 AM, Luciano B. wrote:
clean??? isn’t it.
Any explanation will be fine
Rails mailing list
Technology Visionary - Technology Assessment - Documentation
“Looking at technology from every angle”