So I’m still having problmes, having just discovered that even though
pagination correctly splits up my page, when you click on a page link,
it doesn’t actually work!
My problem is that the array I compile is actually a combination of a
few different type of models. What do I do in this case (notice the
hack at the end):
def index @goals = Search.search_goals(params[:search]) @people = Search.search_people(params[:search]) @all = [] #mark goals and people and teams for easier presentation processing
(has to do with the way I display in the view) @goals.each do |g| @all << [“g”,g]
end @people.each do |p| @all << [“p”,p]
end #here’s the pagination hack
all_temp = @all @all = all_temp.paginate