Sha256: 711e55beba0b4663e3c82ae24156b78de030a91ba61702db607895202b7f3657

Contents?: true

Size: 636 Bytes

Versions: 10

Compression:

Stored size: 636 Bytes

Contents

<h1>Listing <%= @name_plural %></h1>

<table>
  <tr>
    <th>&nbsp;</th>
  </tr>

<%% for <%= @name_singular %> in @<%= @name_plural %> %>
  <tr>
    <td>&nbsp;</td>
    <td><%%= link_to("Show", <%= @name_plural %>_show_url(:id => <%= @name_singular %>.id)) %></td>
    <td><%%= link_to("Edit", <%= @name_plural %>_edit_url(:id => <%= @name_singular %>.id)) %></td>
    <td><%%= link_to("Delete", <%= @name_plural %>_delete_url(:id => <%= @name_singular %>.id), :method => :delete, :confirm => "Are you sure?") %></td>
  </tr>
<%% end %>
</table>

<br />

<%%= link_to("New <%= @name_singular_camel %>", <%= @name_plural %>_new_url) %>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
mack-0.2.0 lib/generators/scaffold_generator/templates/generic/app/views/index.html.erb.template
mack-0.2.0.1 lib/generators/scaffold_generator/templates/generic/app/views/index.html.erb.template
mack-0.1.0 lib/generators/scaffold_generator/templates/generic/app/views/index.html.erb.template
mack-0.4.0.1 lib/generators/scaffold_generator/templates/generic/app/views/index.html.erb.template
mack-0.4.1 lib/generators/scaffold_generator/templates/generic/app/views/index.html.erb.template
mack-0.4.2.1 lib/generators/scaffold_generator/templates/generic/app/views/index.html.erb.template
mack-0.3.0 lib/generators/scaffold_generator/templates/generic/app/views/index.html.erb.template
mack-0.4.0 lib/generators/scaffold_generator/templates/generic/app/views/index.html.erb.template
mack-0.4.2 lib/generators/scaffold_generator/templates/generic/app/views/index.html.erb.template
mack-0.4.5 lib/generators/scaffold_generator/templates/generic/app/views/index.html.erb.template