% cache @clip do %>
<%= @clip.title %>
<% end %>
<% if @clip.video.attached? %>
<%= video_tag @clip.video, :controls => true%>
<% end %>
Category: <%= link_to @clip.category.name, @clip.category %>
Tags: <%= @clip.tags.map(&:name).join(', ') %>
<% if authenticated? %>
<%= button_to "Edit", edit_clip_path(@clip), :method => "get" %>
<%= button_to "Delete", @clip, method: :delete, data: { turbo_confirm: "Are you sure?" } %>
<% end %>