03 Jul 2013, 22:13
Generic-user-small

Nikola Savic (3 posts)

The text code is as follows:

1      <% if notice %>
2	    <p id="notice"><%= notice %></p>
3      <% end %>
4
5      <% @products.each do |product| %>
7      <div class="entry">
8      <%= image_tag(product.image_url) %> <h3><%= product.title %></h3>
9      <%= sanitize(product.description) %> <div class="price_line">
10    <span class="price"><%= product.price %></span> </div>
11    </div>
12    <% end %>

I think it should be <p><%= sanitize(product.description) %></p> on line 9 to properly format the description.

28 Aug 2013, 19:34
Generic-user-small

Frederic PLANTE (1 post)

You’re right, I came to the same conclusion. Otherwise product description goes below the image.

19 Jan 2014, 05:43
Generic-user-small

Leo Dev (1 post)

Product description was still shown below the image even after adding <p></p>. What else should I check to have this work? Thanks.

  You must be logged in to comment