OSDN Git Service

fix view
[pettanr/pettanr.git] / app / views / original_pictures / _exist.html.erb
index 4a89259..66df334 100644 (file)
@@ -25,7 +25,9 @@
           </td>
         <% end %>
         <td>
-          <%= link_to h(picture.artist.name), picture.artist %>
+          <% if picture.artist %>
+            <%= link_to h(picture.artist.name), picture.artist %>
+          <% end %>
         </td>
         <td>
           <% if picture.enable? %>