Re: Pagination of find_by_? results

The error is being generated here:

['business_application_name LIKE ?', params[:app_name] + '%']

The error occurs when the params[:app_name] is nil because it doesn't know how to add the percent sign to nil. To solve this you need to pass the app_name parameter along with the pagination links. Like this:

Re: Pagination of find_by_? results

The colon is for a symbol. Although there are some differences, it helps to just think of it as a string. The way pagination works is a little weird. I suggest just sticking with the examples instead of splitting the find onto a second line.

Re: Pagination of find_by_? results

Hmm, I guess the paginator doesn't like the :include parameter. I guess you'll have to do this find separately. The Rails Wiki shows how to do this - check out the Custom Pagination section about halfway down. Also see this tutorial on an alternative way to do it.