A pagination plugin for DataMapper.
Ruby
Switch branches/tags
Nothing to show
Pull request Compare This branch is 29 commits behind genki:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
spec
test
.gitignore
LICENSE
README
Rakefile
TODO
dm-pagination.gemspec

README

dm-pagination
=============

A plugin for the Merb framework that provides pagination for DataMapper.

USAGE:

  In your controller,

  class Posts
    def index
      @posts = Post.paginate(:page => params[:page])
    end

  In your view,

  <ul>
  <% @posts.each do |post| %>
    <li><%= h(post.body) %></li>
  <% end %>
  </ul>
  <%= paginate @posts %>