Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- % cache ['store', Product.latest] do %>
- <% @products.each do |product| %>
- <% cache ['entry', product] do %>
- <div class="entry">
- <%= image_tag(product.image_url) %>
- <h3><%= product.title %></h3>
- <%= sanitize(product.description) %>
- <div class="price_line">
- <span class="price"><%= number_to_currency(product.price) %></span>
- </div>
- </div>
- <% end %>
- <% end %>
- <% end %>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement