Daniel Higginbotham
2006-Apr-20 17:16 UTC
[Rails] paginate :includes not working as I thought it should
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