Max Williams wrote:
> I can see that my hopes of someone just telling me the answer were a bit 
> optimistic. :)

Yeah.  We're here to help, not to spoon-feed. :)

> 
> Ok, after a bit of help from a friend i have the sql - it works on the 
> basis of doing a left join with sign_ins (with the conditions on the 
> join) and then getting back the rows where we have nothing on the right 
> hand side (ie no matching sign ins).

Why go to all that trouble?  You could sort User.sign_ins by date and 
check the date on the most recent one.

Best,
--
Marnen Laibow-Koser
http://www.marnen.org
[email protected]
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to