Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
24 lines (13 sloc) 1.09 KB

Kaminari ERB and HAML views for Twitter Bootstrap

twitter bootstrap is a toolkit from Twitter designed to kickstart development of webapps and sites, including styles for pagination.

If you're using kaminari as your pagination library, the markup in its default views won't match the selectors used by bootstrap. This repository contains modified copies of kaminari's views that you can drop in to your ruby application to work with bootstrap.

Installation

in Gemfile

gem 'twitter_bootstrap-kaminari-views'

then bundle it!

Adds optional data option to paginate, that will be passed to all page-links.

= paginate @users, remote: true, data: {replace_element: '#admin_main'}

Credits

Current HAML version taken from this repo