Displaying 2 results from an estimated 2 matches for "people_pages".
Did you mean:
people_page
2006 Apr 20
0
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...
2007 Sep 11
0
How to test ''Paginate''?
Great Hi to everyone:
I don''t know how to write spec for a controller method which has
''paginate''. Is there any Rspec API for it?
To illustrate, I would like to post an example.
class PeopleController
def paginate_method
hash = Hash.new
hash[:people_page], hash[:people] = paginate :people, ...#order and
conditions omitted
render