Commit 46163080

mo khan <mo@mokhan.ca>
2014-05-19 01:54:36
display full path to image in admin section.
1 parent d124cc9
Changed files (2)
app
app/views/admin/photos/index.html.erb
@@ -20,7 +20,7 @@
             <td><%= link_to photo.creation.name, creation_path(photo.creation) %></td>
             <td><%= photo.created_at %></td>
             <td><%= photo.updated_at %></td>
-            <td><%= photo.image_tmp %></td>
+            <td><%= photo.image.cache_dir %>/<%= photo.image_tmp %></td>
             <td><%= photo.image_processing %></td>
           </tr>
         <% end %>
app/views/admin/photos/show.html.erb
@@ -25,10 +25,7 @@
       </tbody>
     </table>
 
-    <h2><%= @photo.image.url %></h2>
-    <h2><%= @photo.image.root %></h2>
-    <h2><%= @photo.image.cache_dir %></h2>
-    <h2><%= @photo.image.store_dir %></h2>
+    <h2><%= @photo.image.root %><%= @photo.image.url %></h2>
     <%= image_tag @photo.image.url %>
   </div>
 </div>