Created
November 19, 2012 18:05
-
-
Save alan707/4112380 to your computer and use it in GitHub Desktop.
tools table
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% @tools.each do |tool| %> | |
<tr> | |
<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> --> | |
</tr> | |
<% end %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment