Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
tools table
<% @tools.each do |tool| %>
<td><%= link_to tool.title, tool %></td>
<td><%= tool.price %></td>
<td><%= tool.address %></td>
<td><%= link_to tool.user.try(:email), profiles_path %></td>
<!-- <td><%= link_to 'Show', tool %></td>
<!-- <td><%= link_to 'Edit', edit_tool_path(tool) %></td>
<td><%= link_to 'Destroy', tool, method: :delete, data: { confirm: 'Are you sure?' } %></td> -->
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.