I am very new to RoR and am learning using the Agile Web D.
with Rails referece. I am slowly creating the Depot application and
have a problem setting up an image to act as a hyper link.
The code snippt I specifically have a problem with is
<%= link_to image_tag(’<%= product.image_url %>’), :action =>
:add_to_cart, :id => product %>
If I replace <%= product.image_url %> with static text e.g.
/images/17.jpg the line of code works but I need to change the image
for each db record.
I have spent hours searching the web to help point me in the right
direction to no avail.
Thanks in advance for your help