當我把will_paginate分頁列表到twitter引導標籤。它只是列出了它們之間的分頁鏈接。我使用will_paginate-bootstrap來設置分頁的樣式。bootstrap導航標籤與will_paginate分頁在每個標籤
我已經嘗試過不使標籤的工作:
取出分頁造型
刪除分頁塊
如果我刪除所有紅寶石標籤的工作,所以他們工作獨立
<div class="tabbable">
<ul class="nav nav-tabs">
<li class="active"><a href="#A" data-toggle="tab">Newest</a></li>
<li><a href="#B" data-toggle="tab">Activity</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="A">
<%= render partial: "posts/post", collection: @posts, as: :post %>
<%= will_paginate @posts, renderer: BootstrapPagination::Rails %>
</div>
<div class="tab-pane" id="B">
<%= render partial: "posts/post", collection: @posts_by_activity, as: :post %>
<%= will_paginate @posts_by_activity, renderer: BootstrapPagination::Rails %>
</div>
</div>
</div>
您可以有選項卡特定頁面。 – AarCee