Displaying 1 result from an estimated 1 matches for "activeracord".
Did you mean:
active_record
2006 Jun 23
0
ActiveRacord::Base find does not support HAVING ?!
Hi,
I''m new to Ruby/Rails and trying to do something like:
options = {
:select=>''t1.*, count(c2)'',
:joins=> ''AS t1 LEFT JOIN t2 ON t1.ID=t2.t1_id'',
:group=> ''t1.id'',
:having=> "count(c2) = #{my_var}"
}
T1.find(:all,options)
But I got the following error:
ArgumentError in T1Controller#action1
Unknown