Return to Snippet

Revision: 40441
at February 2, 2011 06:10 by brandonjp


Initial Code
<% @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 %>

Initial URL

                                

Initial Description
links (full <a href="#"> element) to Show Edit Destroy Delete records in view *.erb 
must be in the record loop:

Initial Title
Ruby / Rails - links ( full  element ) to Show Edit Destroy Delete records in view *.erb

Initial Tags
link, rails, ruby

Initial Language
Ruby