I'm gonna try to be more concise:
I do a find(:group => "some_column", :select => "count(*) as
I did declare in the model "attr_accessor :some_column_count", but the
some_column_count comes up as nil, even though the SQL query yields
I suppose the column is nil because is not a real active record
attribute. I added some_column_count as a column in the table and the
assign from the group find works, but I find the solutin ugly.
Is there a way to add an activerecord attribute in the model behaves
the same as a normal one, only that it doesn't map to a real column?
Gabi Ge wrote: