
<table class="table table-striped table-hover table-condensed">

  <thead>
  <tr>
    <th colspan="2"></th>
    <th colspan="3">per 100 grams</th>
  </tr>
  <tr>
    <th>NDBN</th>
    <th>Name</th>
    <th>KCal</th>
    <th>Carbs</th>
    <th>Sugar</th>
  </tr>
  </thead>

<% @foods.each do |f| %>

  <tr>
    <td><%= f.ndbn %></td>
    <td><%= link_to f.long_description, '#', class: 'food_result', data: {ndbn: f.ndbn} %></td>
    <td><%= f.kcal %></td>
    <td><%= f.carbohydrates %></td>
    <td><%= f.sugar %></td>
  </tr>

<% end %>

</table>