Paginate :includes not working as I thought it should


#1

Hello everyone, I have the code below:

paginator_options.merge!({:conditions => ‘cities.id = 4’, :include =>
[:cities]})

@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
generated
the join table isn’t present so that the condition “cities.id = 4”
throws an
error. Any ideas?

Thanks,
Daniel