Paginate :includes not working as I thought it should

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 forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs