title: Database data displaying on html (rails)
body: <p>I am making a rails app that users can use to shop for products. Everything was working fine, then I adjusted the <code>products#index</code> page, and now the data from the database is displaying on the html under the <code>&lt;div&gt;</code> of the page like so;</p>
  
  <pre><code>[#&amp;lt;Product id: 1, name: &amp;quot;Green&amp;quot;, description: &amp;quot;coming from the hills of the emerald triangle, thi...&amp;quot;, strain: &amp;quot;Sativa&amp;quot;, price: #&amp;lt;BigDecimal:7fbe558f8228,&amp;#39;0.2E2&amp;#39;,9(18)&amp;gt;, image_file_name: &amp;quot;http://i.imgur.com/NZkyXpr.jpg&amp;quot;, created_at: &amp;quot;2015-04-12 22:56:42&amp;quot;, updated_at: &amp;quot;2015-04-12 22:56:42&amp;quot;, gram_price: nil, eighth_price: nil, quarter_price: nil, product_type: nil&amp;gt;, #&amp;lt;Product id: 3, name: &amp;quot;Sour Diesel&amp;quot;, description: &amp;quot;Sour, sometimes called Sour D, is an invigo...&amp;quot;, strain: &amp;quot;Hybrid&amp;quot;, price: #&amp;lt;BigDecimal:7fbe55902bd8,&amp;#39;0.2E2&amp;#39;,9(18)&amp;gt;, image_file_name: &amp;quot;http://i.imgur.com/RUHZAXQ.jpg&amp;quot;, created_at: &amp;quot;2015-04-13 01:42:35&amp;quot;, updated_at: &amp;quot;2015-04-13 01:42:35&amp;quot;, gram_price: nil, eighth_price: nil, quarter_price: nil, product_type: nil&amp;gt;, #&amp;lt;Product id: 2, name: &amp;quot;Grand Daddy Purp&amp;quot;, description: &amp;quot;Introduced in 2003 by Ken Estes, Granddaddy Purple...&amp;quot;, strain: &amp;quot;Indica&amp;quot;, price: #&amp;lt;BigDecimal:7fbe559015d0,&amp;#39;0.2E2&amp;#39;,9(18)&amp;gt;, image_file_name: &amp;quot;http://i.imgur.com/8O5kXeL.jpg&amp;quot;, created_at: &amp;quot;2015-04-13 01:41:17&amp;quot;, updated_at: &amp;quot;2015-04-13 07:31:14&amp;quot;, gram_price: nil, eighth_price: nil, quarter_price: nil, product_type: nil&amp;gt;]
  </code></pre>
  
  <p>Here is my index page, along with my controller</p>
  
  <p><strong>index.html.erb</strong></p>
  
  <pre><code>&lt;section class="product-page"&gt;
    &lt;div class="container"&gt;
      &lt;div class="row text-center"&gt;
        &lt;%= @products.each do |product| %&gt;
          &lt;div class="product col-md-4 text-center"&gt;
            &lt;h2&gt;&lt;%= link_to product.name, product_path(product.id) %&gt;&lt;/h2&gt;
            &lt;%= link_to image_tag(product.image_file_name),
                product_path(product.id), :class =&gt; 'img-responsive' %&gt;
             &lt;div class="product-info"&gt;
               &lt;div class="product-info-left"&gt;&lt;%= product.descrip %&gt;&lt;/div&gt;
               &lt;div class="product-info-right"&gt;&lt;%= product.price %&gt;&lt;/div&gt;
             &lt;/div&gt;   
          &lt;/div&gt;
          &lt;% end %&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/section&gt; 
  </code></pre>
  
  <p><strong>products_controller.rb</strong></p>
  
  <pre><code>class ProductsController &lt; ApplicationController
  
  
    def index
      @products = Product.all
    end
  
    def show
      @product = Product.find(params[:id])
    end
  
  
  end
  </code></pre>
  
  <p>Does anyone know why the data from the database would be displaying on my html page? Did I forget to close a tag, is there something in my controller? I can also attach an image that shows what it looks like if my description isn't clear. Any tips would be much appreciated. </p>