[Rails] Re: Rails Query Pulling Inaccurate Results

2012-04-17 Thread Frederick Cheung
On Apr 17, 5:43 am, yellowreign ryanac...@gmail.com wrote: Two weird things seem to happen: (1) Activity records are pulling in which don't belong to the user, in fact, when I look at my DB I'm not sure the Activity records even exist (do a sort by user_id in Activity, then I look at the

[Rails] Re: Rails Query Pulling Inaccurate Results

2012-04-16 Thread Juan Pablo Avello
El lunes, 16 de abril de 2012 23:43:44 UTC+2, yellowreign escribió: m running Rails 3.0.7, Ruby 1.9.2, and mySQL (local and remote). I have a query which is pulling in records that I don't understand. The purpose of the query is to total points that users receive from customer jobs they