I'm a newbie, running through a rails tutorial. I'm a bit stuck on
using the img_submit_tag.

<% @products.each do |product| -%>
  <div class="entry">
    <%= link_to image_tag(product.image_url, :border =>0), :action =>
'add_to_cart', :id => product %>
    <h3><%=h product.title %></h3>
    <%= product.description %>

The  <%= link_to image_tag(product.image_url, :border =>0), :action =>
'add_to_cart', :id => using the product.image_url as a source and I'd
like to know how I can pass the path to the img_submit_tag.
Thanks, I hope I'm not too confusing in my question

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to