This is example page for a "table_go" gem with "will_paginate" and "bootstrap-sass".
Name | Place |
---|
Matula AG | Süd Jano |
Brauer-Markowski | West Sorayadorf |
Molitor Gruppe | Stöwerscheid |
Krabbe GmbH & Co. KG | Ost Dorian |
Wachenbrunner, Gast und Borrmann | Feuerbachburg |
HAML:
= table_go_for @publishers, Publisher, :table_html => {:class => 'table table-hover'} do |t|
- t.column :name
- t.column :place
ERB:
<div class="pull-right"><%= will_paginate(@publishers) %></div>
<%= table_go_for @publishers, Publisher, :table_html => {:class => 'table table-hover'} do |t| %>
<% t.column :name %>
<% t.column :place %>
<% end %>
First name | Last name |
---|
Lewis | Götzelmann |
Fabian | Golomski |
Amanda | Ahlke |
Vivienne | Gross |
Cindy | Kinzel |
Clara | Grün |
Elsa | Walz |
Josephin | Pressler |
Alfred | Griese |
Leonidas | Krohn |
HAML:
.pull-right
= will_paginate(@authors)
= table_go_for @authors, Author, :table_html => {:class => 'table table-striped table-hover table-bordered'} do |t|
- t.column :first_name
- t.column :last_name
ERB:
<div class="pull-right"><%= will_paginate(@authors) %></div>
<%= table_go_for @authors, Author, :table_html => {:class => 'table table-striped table-hover table-bordered'} do |t| %>
<% t.column :first_name %>
<% t.column :last_name %>
<% end %>