show tags in places
This commit is contained in:
parent
bacef8db2c
commit
47c71a3935
2 changed files with 30 additions and 12 deletions
|
|
@ -10,6 +10,7 @@
|
|||
<th>Category</th>
|
||||
<th>Updated at</th>
|
||||
<th>Created at</th>
|
||||
<th>Tags</th>
|
||||
</tr>
|
||||
<% @clips.each do |clip| %>
|
||||
<tr>
|
||||
|
|
@ -31,6 +32,11 @@
|
|||
<td>
|
||||
<%= clip.created_at %>
|
||||
</td>
|
||||
<td>
|
||||
<% clip.tags.each_with_index do |tag, index| %>
|
||||
<%= link_to tag.name, tag_path(tag) %><% if index < clip.tags.size - 1 %>, <% end %>
|
||||
<% end %>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</table>
|
||||
</table>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue