Pål Bergström | 16 May 21:08

Re: Find the last entry by user_id


> :order => 'created_at desc', :limit => 1, :group => 'user_id'

Doesn't work. I must do something wrong, or this is not suited for 
:average. I get a result all right, but it's a hash or array, not an 
average value.
--

-- 
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 rubyonrails-talk@...
To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---


Gmane