Displaying 1 result from an estimated 1 matches for "rate_type_id".
Did you mean:
data_type_id
2006 Jul 19
0
Find, .map and Distinct
@rate_types = PerformerCategoryRate.find( :all,
:conditions => [
"performer_category_id = ?",
@calc_sheet_performer_line.performer_category.id ],
:select => "DISTINCT
rate_type_id, min(id)",
:group => "rate_type_id" ).map
{ |pc| [pc.rate_type.name, pc.id ] }
I''m sure it''s something simple, but when I use the above command, and
assign @rate_types to a select group, the value is not set on the ite...