Clips

<%= link_to "New clip", new_clip_path if authenticated? %> <% @clips.each do |clip| %> <% end %>
Preview Title Duration Category Updated at Created at
<%= link_to (image_tag url_for(clip.video.preview(resize_to_limit: [160, 120]).processed)), clip %> <%= link_to clip.title, clip %> <%= seconds_to_time(clip.video.metadata["duration"]) %> <%= clip.category.name %> <%= clip.updated_at %> <%= clip.created_at %>