ruby-on-rails3, and select distinct using activereccord3

Posted by arkannia on Stack Overflow See other posts from Stack Overflow or by arkannia
Published on 2010-05-26T15:19:37Z Indexed on 2010/05/26 15:21 UTC
Read the original article Hit count: 695

Hi,

Some methods have been deprecated with Rails3. It is the case in particular with the following call !

Error.find(:all, :select => 'DISTINCT type')

Is anybody have an idea, how to convert this call to an ActiveRecord3 valid statement ?

I found nothing on the web ...

Thanks

© Stack Overflow or respective owner

Related posts about activerecord

Related posts about ruby-on-rails3