/ Published in: Ruby
Expand |
Embed | Plain Text
<% @colors.each do |color| %> <table> <tr> <td><%= link_to 'Show', color %></td> <td><%= link_to 'Edit', edit_color_path(color) %></td> <td><%= link_to 'Destroy', color, :confirm => 'Are you sure?', :method => :delete %></td> </tr> </table> <% end %>
You need to login to post a comment.
