# Need advise: searchlogic & pagination

**URL:** <https://www.ruby-forum.com/t/need-advise-searchlogic-pagination/185169>\
**Category:** Rails\
**Created:** [March 15, 2010, 2:55pm UTC](https://www.ruby-forum.com/t/need-advise-searchlogic-pagination/185169 "2010-03-15T14:55:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tomtt](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/e47c2d/32.png) [@tomtt](https://www.ruby-forum.com/u/tomtt)\
**Post date:** [March 15, 2010, 2:55pm UTC](https://www.ruby-forum.com/t/need-advise-searchlogic-pagination/185169/1 "2010-03-15T14:55:48Z")

</div>

hi,

im using searchlogic, but cant get pagination running. it telling me:  
#i did install will\_paginate (plugin), searchlogic as gem

undefined local variable or method `per\_page\_select’ for

29:  
30: \<%= render @jobs %\>  
31:  
32: \<%= per\_page\_select %\>  
33:

2nd: question:

im running that in a custom action with custom route, eg:

:3000/test/basicsearch

> > def basicsearch … end

how can i prevent that the search gets executed only after the user  
prsses the search button? something like params.blank?

thx  
tom
