I am attempting to page a dataset with [kaminari](http://rubygems.org/gems/kaminari) on Sinatra. 

In my Gemfile I have

```
source "https://rubygems.org"
gem 'sinatra'
gem 'thin'
gem 'pg'
gem 'kaminari', :require => 'kaminari/sinatra'

```

The Ruby code is:

```
dataset = DB[:candidates] 
get '/candidate' do

     @items = dataset.order(:id).page(params[:page]).per(5)
     erb :candidate
end

```

and the error message is:

```
NoMethodError at /candidate
undefined method `page' for #<Sequel::Postgres::Dataset:0x94a6808>

    file: app.rb
    location: block in <main>
    line: 25

```

I am stuck. I have also tried [will\_paginate](http://rubygems.org/gems/will_paginate) with similar frustration and failure. 

Is the query correct? I have also tried:

```
@items = dataset.order("id").page(:page=>params[:page]).per(5)

```

which produces the same error.

Any ideas anybody?