Will_paginate

Hi, I don't speak English very well, and I have a problem, with the gem mislav-will-paginate I install perfect, the las version 2.3.11 and I did the example

How to paginate, sort and search a table with Ajax and Rails · dev.nozav.org and I copy all!!

My problem is this:

NoMethodError in ItemController#list undefined method `paginate' for #<ItemController:0x53dd614>

None

Show session dump

The problem is this line in controller:

@items_pages, @items = paginate :items, :order => sort, :conditions => conditions, :per_page => items_per_page

That tutorial is written for people using classic_pagination, which is not the same as will_paginate.

Fred