Sha256: bab22fbaf3a2d11063a33c1f97b145af10afe674c81f98409c95ffcb4a029eec

Contents?: true

Size: 605 Bytes

Versions: 7

Compression:

Stored size: 605 Bytes

Contents

<h1>Listing <%= model.p -%></h1>

<table>
  <tr><%= model.fields.map { |k, v| "<th>#{k.capitalize}</th>"}.join("\n") -%>
  </tr>

<%= "<% for #{model.s} in @#{model.p} %>" -%>
  <tr> <%= model.fields.map { |k, v| "<td> <%=h #{model.s}.#{k} %></td>"}.join("\n")  -%>
    <td><%= "<%= link_to 'Show', #{model.s} %>" -%></td>
    <td><%= "<%= link_to 'Edit', edit_#{model.s}_path(#{s}) %>" -%></td>
    <td><%= "<%= link_to 'Destroy', #{model.s}, :confirm => 'Are you sure?', :method => :delete %>" -%></td>
  </tr>
<% end %>
</table>

<br />

<%= "<%= link_to 'New #{model.s}', new_#{model.bs}_path %>" -%>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
mattknox-goaloc-0.0.3 lib/goaloc/generators/rails/index.html.erb
mattknox-goaloc-0.0.5 lib/goaloc/generators/rails/index.html.erb
mattknox-goaloc-0.0.6 lib/goaloc/generators/rails/index.html.erb
mattknox-goaloc-0.0.7 lib/goaloc/generators/rails/index.html.erb
mattknox-goaloc-0.0.8 lib/goaloc/generators/rails/index.html.erb
mattknox-goaloc-0.0.9 lib/goaloc/generators/rails/index.html.erb
mattknox-goaloc-0.1.0 lib/goaloc/generators/rails/index.html.erb