Thursday, September 20, 2012

Rails paginate inner join and outer join

some_scope.paginate \
:per_page => 20, :page => page,
:joins => :table_A, # will be inner joined
:include => :table_B, # will be outer joined
:conditions => ...

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.