small medium large xlarge

23 Aug 2012, 13:38
Daniel-Yan (2 posts)

The first question ask to add a link_to method on the image tag,so it will trigger the create action when clicked on,and I add the following code in views/store/index.html.erb file: <%=link_to image_tag(product.image_url), line_items_path(:product_id=>product), :html_options=>{:method=>:post}%> but it doesn’t work,so where does the problem lies?

You must be logged in to comment