What is the best way to implement a control break, in Rails ? Suppose we have a table: CREATE TABLE purchases ( id int not null auto_increment , card varchar(20) , description varchar(80) , amount decimal(10,2) ) with this data 1, AA, xxxxxxx, 20.45 2, BB, xxxxxxx, 3.45 3, AA, xxxxxxx, 23.45 4, AA, xxxxxxx, 11.22 5, BB, xxxxxxx, 91.77 and we want to make a report like this: CARD AA description amount (...) description amount TOTAL CARD AA: total_card CARD BB description amount (...) description amount TOTAL CARD BB: total_card TOTAL PURCHASES: total_purchases Any help would be appreciated ! Carlos _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails