<% cache @tape do %>

<%= @tape.title %>

<% end %> <% if @tape.video.attached? %> <%= video_tag @tape.video, :controls => true%> <% end %> <%= link_to "Back", tapes_path%> <% if authenticated? %> <%= link_to "Edit", edit_tape_path(@tape) %> <%= button_to "Delete", @tape, method: :delete, data: { turbo_confirm: "Are you sure?" } %> <% end %>