I\'m using will_paginate to display data returned from a query that includes both a joins and a select statement. When I paginate the data the number of entries is equal to
Assuming that your Sale model has_many :line_items, by joining you're going to get a 'sales' entry for every related 'line_item'.