This is example page for a "table_go" gem with "will_paginate" and "bootstrap-sass".
Name | Place |
---|
Klinger GmbH | Neu Anton |
Willwacher-Kemper | Caragrün |
Beggerow AG | Ost Linus |
Grasse-Fischer | Marthagrün |
Brinkmann-Heiser | Schön Renéfeld |
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 |
---|
Joyce | Haug |
Jana | Breu |
Thalea | Schütz |
Madleen | Haverney |
Nancy | Ehmann |
Marco | Karrass |
Paul | Hoffman |
Jolin | Barth |
Jasper | Schonberg |
Katja | Storl |
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 %>