Sha256: c7f068709c059e977651a6d204133359045d3f171e01d6ceb3c8ba3cbab754ed

Contents?: true

Size: 710 Bytes

Versions: 3

Compression:

Stored size: 710 Bytes

Contents

<%%= header new_dash_<%= singular_name %>_path %>
<table cellpadding="0" cellspacing="0">
  <tr>
    <th>#</th>
    <th><%%= <%= class_name %>.human_attribute_name :created_at %></th>
    <th class="actions"><%%= t 'dash.grid.actions' %></th>
  </tr>
  <%% <%= @instance_plural %>.each do |<%= singular_name %>| %>
    <tr>
      <td><%%= <%= singular_name %>.id %></td>
      <td><%%= l <%= singular_name %>.created_at %></td>
      <td class="actions">
        <%%= link_to t('dash.grid.update'), [:dash, <%= singular_name %>] %>
        <%%= link_to t('dash.grid.destroy'), [:dash, <%= singular_name %>], method: 'delete' %>
      </td>
    </tr>
  <%% end %>
</table>
<%%= pager <%= @instance_plural %> %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rails_dash-0.1.2 lib/generators/dash/templates/index.html.erb
rails_dash-0.1.1 lib/generators/dash/templates/index.html.erb
rails_dash-0.1.0 lib/generators/dash/templates/index.html.erb