I checked my install and received the same results.  Looks like a 
PostgreSQL syntax thing.  I'm new to PostgreSQL and have not looked at 
group by SQL syntax.

Off the top of my head, as a (non recommended) work around, you could 
insert a .select() with a column list, and it should work.  That, 
however, is a bad solution for obvious reasons, but might work in a 
pinch.

I tried, and received the same result:

User.group(:first_name)

The following worked:

User.select(:first_name).group(:first_name)

-- 
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