Sha256: 1bf4590ef3128af561982a736de35d79c5b02ee1edfa40337e69154f4849ad47

Contents?: true

Size: 1.17 KB

Versions: 78

Compression:

Stored size: 1.17 KB

Contents

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

<table>
  <tr>
  <% for column in @scaffold_class.content_columns %>
    <th><%= column.human_name %></th>
  <% end %>
  </tr>
  
<% for entry in instance_variable_get("@#{@scaffold_plural_name}") %>
  <tr>
  <% for column in @scaffold_class.content_columns %>
    <td><%= entry.send(column.name) %></td>
  <% end %>
    <td><%= link_to "Show", :action => "show#{@scaffold_suffix}", :id => entry %></td>
    <td><%= link_to "Edit", :action => "edit#{@scaffold_suffix}", :id => entry %></td>
    <td><%= link_to "Destroy", {:action => "destroy#{@scaffold_suffix}", :id => entry}, { :confirm => "Are you sure?", :method => :post } %></td>
  </tr>
<% end %>
</table>

<%= link_to "Previous page", { :page => instance_variable_get("@#{@scaffold_singular_name}_pages").current.previous } if instance_variable_get("@#{@scaffold_singular_name}_pages").current.previous %>
<%= link_to "Next page", { :page => instance_variable_get("@#{@scaffold_singular_name}_pages").current.next } if instance_variable_get("@#{@scaffold_singular_name}_pages").current.next %> 

<br />

<%= link_to "New #{@scaffold_singular_name}", :action => "new#{@scaffold_suffix}" %>

Version data entries

78 entries across 78 versions & 5 rubygems

Version Path
jstorimer-deep-test-2.0.0 sample_rails_project/vendor/rails/actionpack/lib/action_controller/templates/scaffolds/list.rhtml
jstorimer-deep-test-1.4.0 sample_rails_project/vendor/rails/actionpack/lib/action_controller/templates/scaffolds/list.rhtml
jstorimer-deep-test-1.3.0 sample_rails_project/vendor/rails/actionpack/lib/action_controller/templates/scaffolds/list.rhtml
jstorimer-deep-test-1.2.0 sample_rails_project/vendor/rails/actionpack/lib/action_controller/templates/scaffolds/list.rhtml
jstorimer-deep-test-1.1.0 sample_rails_project/vendor/rails/actionpack/lib/action_controller/templates/scaffolds/list.rhtml
jstorimer-deep-test-1.0.0 sample_rails_project/vendor/rails/actionpack/lib/action_controller/templates/scaffolds/list.rhtml
jstorimer-deep-test-0.2.0 sample_rails_project/vendor/rails/actionpack/lib/action_controller/templates/scaffolds/list.rhtml
jstorimer-deep-test-0.1.0 sample_rails_project/vendor/rails/actionpack/lib/action_controller/templates/scaffolds/list.rhtml
actionpack-1.13.0 lib/action_controller/templates/scaffolds/list.rhtml
actionpack-1.13.4 lib/action_controller/templates/scaffolds/list.rhtml
actionpack-1.13.5 lib/action_controller/templates/scaffolds/list.rhtml
actionpack-1.13.1 lib/action_controller/templates/scaffolds/list.rhtml
actionpack-1.13.2 lib/action_controller/templates/scaffolds/list.rhtml
actionpack-1.13.6 lib/action_controller/templates/scaffolds/list.rhtml
actionpack-1.13.3 lib/action_controller/templates/scaffolds/list.rhtml
backlog-0.0.0 vendor/rails/actionpack/lib/action_controller/templates/scaffolds/list.erb
backlog-0.0.1 vendor/rails/actionpack/lib/action_controller/templates/scaffolds/list.erb
backlog-0.0.2 vendor/rails/actionpack/lib/action_controller/templates/scaffolds/list.erb
backlog-0.0.4 vendor/rails/actionpack/lib/action_controller/templates/scaffolds/list.erb
backlog-0.0.5 vendor/rails/actionpack/lib/action_controller/templates/scaffolds/list.erb