I tried
@posts = Post.page(params[:page]).per_page(10)
and
@posts = Post.paginate(:page => 1, :per_page => 10)
To update a bit the answers, now exists the Pagy gem, also much more performant (cpu/mem) than will_paginate and kaminari. This is a migration guide