title: Render table in partial Rails 4.0
body: <p>Could someone help me render a table view partial? Basically, I have a Link model with two attributes: Description and URL. My Link model is a nested resource of my Opportunity model. Therefore when I click "show" on an opportunity, I want it to show the Opportunity then show all the links that belong to that opportunity. I want the links to be rendered into a table with columns labeled "Description" and "URL". My current code looks like this:</p>
  
  <p>views/opportunities:</p>
  
  <pre><code>&lt;%= render @opportunity %&gt;
  &lt;h3&gt;Links&lt;/h3&gt;
  &lt;div id = "links"&gt;
    &lt;%= render @opportunity.links %&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>views/links/_link</p>
  
  <pre><code>&lt;%= div_for link do %&gt;
  
      &lt;p&gt;Description:&lt;%= link.description %&gt;&lt;/p&gt;
      &lt;p&gt;URL: &lt;%= link.link_url %&gt;&lt;/p&gt;
      &lt;span class='actions'&gt;
              &lt;%= link_to 'Delete', [@opportunity, link], :confirm =&gt; 'Are you sure?',
                  :method =&gt; :delete %&gt;
      &lt;/span&gt;
  &lt;% end %&gt;
  </code></pre>