16 May 21:08
Re: Find the last entry by user_id
From: Pål Bergström <rails-mailing-list@...>
Subject: Re: Find the last entry by user_id
Newsgroups: gmane.comp.lang.ruby.rails
Date: 2008-05-16 19:08:29 GMT
Subject: Re: Find the last entry by user_id
Newsgroups: gmane.comp.lang.ruby.rails
Date: 2008-05-16 19:08:29 GMT
> :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 -~----------~----~----~----~------~----~------~--~---
RSS Feed