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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.