anchor.diff:                </div>
               </div>
               
  -          <% elsif record.is_image? %>  
  +          <% elsif is_image?(record.file_upload) %>  
               <div class="masonry-item">
                 <%= link_to record_path(record.id), :class => "section" do %>
                   <%= image_tag record.file_upload.url(:original) %>
  
positive.code:               </div>
              </div>
  
            <% elsif record.is_audio? %>  
              <div class="masonry-item">
                <%= link_to record_path(record.id), :class => "section audio-section" do %>
                  <%= image_tag("audio-icon.jpg") %>
  
negative.code:       <div class="masonry">
          <% @user_records.each do |record| %>
            
            <% if is_video?(record.file_upload) %>  
              <div class="masonry-item">
                <%= link_to record_path(record.id), :class => "section" do %>
                  <%= image_tag record.file_upload.url(:medium) %>
  