OSDN Git Service

t#30169:show, index action create all resource
[pettanr/pettanr.git] / app / views / colors / index.html.erb
index b9e5286..839ef4f 100644 (file)
@@ -3,7 +3,7 @@
 <table>
 <% @colors.each do |c| %>
   <tr>
-    <td style="color: #<%= format("%06x", c.code ^ 0xffffff) -%>; background-color: #<%= format("%06x", c.code) -%>;"><%= h c.name %></td>
+    <td style="color: #<%= format("%06x", c.code ^ 0xffffff) -%>; background-color: #<%= format("%06x", c.code) -%>;"><%= link_to h(c.name), color_path(c) %></td>
   </tr>
 <% end -%>
 </table>