jharbert / bootstrap-kaminari-views

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bootstrap Kaminari Views

Basic Gem for quick default inclusion of Kaminari theme compatible with Twitter Bootstrap 2.0 and Twitter Bootstrap 3.0

Usage

Ensure your gemfile contains

gem 'kaminari'
gem 'bootstrap-kaminari-views'

Render Pagination with a theme

= paginate @posts, :theme => 'twitter-bootstrap'

= paginate @posts, :theme => 'twitter-bootstrap-3'

Render with specific pagination classes

= paginate @posts, :theme => 'twitter-bootstrap-3', 
                   :pagination_class => "pagination-sm"

Render with specific pagination classes

= paginate @posts, :theme => 'twitter-bootstrap', 
                   :pagination_class => "pagination-small pagination-centered"

Credits

Kaminari - For making an awesome gem

twitter-bootstrap-kaminari-views - Non Gemified Implementation

About

License:MIT License


Languages

Language:Ruby 100.0%