<% cache @clip do %>

<%= @clip.title %>

<% end %> Category: <%= link_to @clip.category.name, @clip.category %>
<% if @clip.video.attached? %> <%= video_tag @clip.video, :controls => true%> <% end %> <%= link_to "Back", clips_path%> <% if authenticated? %> <%= link_to "Edit", edit_clip_path(@clip) %> <%= button_to "Delete", @clip, method: :delete, data: { turbo_confirm: "Are you sure?" } %> <% end %>