parsley/app/views/ingredients/usda_food_search.html.erb
2016-01-28 14:19:51 -06:00

20 lines
282 B
Plaintext

<table class="table">
<thead>
<tr>
<th>NDBN</th>
<th>Name</th>
</tr>
</thead>
<% @foods.each do |f| %>
<tr>
<th><%= f.ndbn %></th>
<th><%= link_to f.short_description, '#', class: 'food_result', data: {ndbn: f.ndbn} %></th>
</tr>
<% end %>
</table>