<% if request.image? %>
  <div class="image"><%= image_tag request.image %></div>
<% end %>

<% if request.video_id %>
  <div class="video"><%= embed_video(request, '100%', '100%') %></div>
<% end %>

<% if request.image? %>
  <div class="image"><%= image_tag request.image %></div>
<% end %>

<% if request.video? %>
  <div class="video"><%= embed_video(request, '100%', '100%') %></div>
<% end %>

Use the new embeddable predicate .video?
Use the new embeddable predicate .video?
