title: Displaying Paperclip Image in index.html.erb view
body: <p>I have successfully followed Ryan Bates tutorial of paperclip and have it working correctly. The image attaches to the record and displays on the show.html.erb.I am wondering how to display it on the index pages. Below is what I have tried but not working. For reference, the table is 'review' and the photo is 'photo'. </p>
  
  <pre><code>&lt;table&gt;
    &lt;tr&gt;
      &lt;th&gt;Photo&lt;/th&gt;
      &lt;th&gt;Review Title&lt;/th&gt;
      &lt;th&gt;Content&lt;/th&gt;
      &lt;th&gt;Name&lt;/th&gt;
      &lt;th&gt;Job Title&lt;/th&gt;
      &lt;th&gt;Company&lt;/th&gt;
    &lt;/tr&gt;
  
  &lt;% @reviews.each do |review| %&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;%=h review.photo.url %&gt;&lt;/td&gt;
      &lt;td&gt;&lt;%=h review.review_title %&gt;&lt;/td&gt;
      &lt;td&gt;&lt;%=h review.content %&gt;&lt;/td&gt;
      &lt;td&gt;&lt;%=h review.name %&gt;&lt;/td&gt;
      &lt;td&gt;&lt;%=h review.position %&gt;&lt;/td&gt;
      &lt;td&gt;&lt;%=h review.company %&gt;&lt;/td&gt;
      &lt;td&gt;&lt;%= link_to 'Show', review %&gt;&lt;/td&gt;
      &lt;td&gt;&lt;%= link_to 'Edit', edit_review_path(review) %&gt;&lt;/td&gt;
      &lt;td&gt;&lt;%= link_to 'Destroy', review, :confirm =&gt; 'Are you sure?', :method =&gt; :delete %&gt;&lt;/td&gt;
    &lt;/tr&gt;
  &lt;% end %&gt;
  &lt;/table&gt;
  </code></pre>