<% if notice %>

<%= notice %>

<% end %>

Your Pragmatic Catalog

<% @products.each do |product| %>
<%= image_tag(product.image_url) %>

<%= product.title %>

<%= sanitize(product.description) %>
<%= number_to_currency(product.price) %> <%= button_to 'Add to Cart', line_items_path(product_id: product), remote: true %>
<% end %>