Paging
geoffw8 opened this issue · comments
Hi all,
My results are limited to 10! I can't find for the life of me where to change it. Appreciate its simple, any help would be appreciated :)
Geoff
I fixed it, didn't realize you had to reindex. My new problem is - I can't get will_paginate to appear.
From controller: @products = Product.search_tank(params[:search]).paginate :page => params[:page], :order => 'created_at DESC'
Model:
cattr_reader :per_page
@@per_page = 10
View:
<%= will_paginate @products %>
<%= render @products %>
Anything jump out at anyone?
Cheers!
Woops, didn't mean to close!