Sha256: d78dbb4cb6a5254d4925fdf3a56a5fc49433fba658c11953520bfb03bcd084fb

Contents?: true

Size: 477 Bytes

Versions: 1

Compression:

Stored size: 477 Bytes

Contents

<% collection.each do |item| %>
<tr<%= cycle(""," class='even'") %>>
<% resource_class.admin_options.column_hash.each do |name, value| %>
	<% if value.is_a?(Array) %>
	<td><%= value.last.call(item) %></td>
	<% else %>
	<td><%= item.send(:"#{name.to_s}") %></td>
	<% end %>
<% end %>
	<td><%= link_to 'Edit', transit.edit_polymorphic_path(item) %></td>
	<td><%= link_to 'Delete', transit.polymorphic_path(item), method: :delete, confirm: 'Are you sure?' %></td>
</tr>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
transit-0.0.2 app/views/transit/table.html.erb