Sha256: b78b1001a79e715094c9ccf82d78178a94750098647fb6915d5c903d0052cd35

Contents?: true

Size: 899 Bytes

Versions: 1

Compression:

Stored size: 899 Bytes

Contents

<%- if action? :new -%>
<p><%%= link_to t('<%= i18n_prefix %>.new.link'), <%= new_item_path %> %></p>
<%- end -%>
<table class="list" id="<%= plural_name %>">
<thead>
  <tr>
<% for attribute in attributes -%>
    <th><%%= <%= class_name %>.human_attribute_name '<%= attribute.column.name %>' %></th>
<% end -%>
  </tr>
</thead>
<tbody>
  <%% @<%= plural_name %>.each do |<%= singular_name %>| -%>
    <%% content_tag_for :tr, <%= singular_name %> do %>
      <tr>
<% for attribute in attributes -%>
        <td><%%=h <%= singular_name %>.<%= attribute.name %> %></td>
<% end -%>
        <td class="actions">
<% if action? :edit -%>
          <%%= link_to_edit_<%= singular_name %> <%= singular_name %> %>
<% end -%>
<% if action? :edit -%>
          <%%= link_to_destroy_<%= singular_name %> <%= singular_name %> %>
<% end -%>
        </td>
      </tr>
    <%% end %>
  <%% end -%>
</tbody>
</table>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jzajpt-blueberry_scaffold-0.1.1 generators/blueberry_scaffold/templates/views/index.html.erb