With table plus you can specify what fields you want to display. For things that aren't part of the record you can do a couple different things:
1. if it's related to the record you can make a method in the model to return what you're after - like your sum 2. you can also do association methods like association.count, association.sum, etc. 3. you can override the view tag for the particular column and do whatever you need As a last note, if you put in a field that is not directly part of your main record's database table, you'll have to do some tweaks to get sorting/searching/filtering working. On Aug 24, 2:52 pm, MichelV69 <[email protected]> wrote: > What is the easiest way to use "table-plus" with a custom > collection? > My application has to deliver "per day" summary billing of an > arbitrary number of days, for a set of resources. The array I'm > building contains "date, pbx, did, customer, this_month_mins, > last_month_mins" in each hash/ record. > > I don't want to print the individual data records; there can be > hundreds totaled in "this_month_mins". So I am doing some behind-the- > curtain accumulations, and using that to build the per-day hash > summary record. I then want to use the very spiffy looking "table- > plus" to put it out on the screen. > > I'm having some troubles inferring from the docs I have if/how to do > this. Thanks very much in advance; Hobo is very cool, and I'm > enjoying working with it. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Hobo Users" 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/hobousers?hl=en -~----------~----~----~----~------~----~------~--~---
