Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <h1>Your Pragmatic Catalog </h1>
- <% @products.each do |product| %>
- <div class="entry">
- <%= link_to image_tag(product.image_url) , line_items_path(:product_id => product.id) ,
- :method => :post %>
- <h3><%= product.title %></h3>
- <%=raw product.description %>
- <div class="price_line">
- <span class="price"><%= number_to_currency(product.price, :unit => "€",
- :separator => "," ) %></span>
- <%= button_to 'Add to Cart', line_items_path(:product_id => product.id) %>
- </div>
- </div>
- <% end %>
Add Comment
Please, Sign In to add comment