Forum: Ruby on Rails paginate :includes not working as I thought it should

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Daniel H. (Guest)
on 2006-04-20 21:17
(Received via mailing list)
Hello everyone, I have the code below:

paginator_options.merge!({:conditions => ' = 4', :include =>

@people_pages, @people = paginate :people, paginator_options

There's a many-to-many relationship between people and cities.

It seemed like before this was working, but now in the sql that's
the join table isn't present so that the condition " = 4"
throws an
error. Any ideas?

This topic is locked and can not be replied to.