title: How to see paging results with Sequel and Sinatra
body: <p>I am using <code>will_paginate</code> and attempting to page a dataset from Sequel. The requires are:</p>
  
  <pre><code>require 'will_paginate'
  require 'will_paginate/sequel'
  require 'will_paginate/collection'
  require 'will_paginate/version'
  require 'sequel/extensions/pagination'
  </code></pre>
  
  <p>The Ruby code is:</p>
  
  <pre><code>get '/candidate' do
       @items = DB[:candidates].order(:id).extension(:pagination).paginate(1, 10)
       erb :candidate
  end
  </code></pre>
  
  <p>In the view: <code>&lt;%= will_paginate @items %&gt;</code></p>
  
  <p>The dataset renders correctly with 10 records and when I click "2" or "Next" the address in the browser changes to <code>http://localhost:4567/candidate?page=2</code> but the records remain the same. Effectively, the results are not paged and I cannot get past page 1. </p>