Can someone please help me with this.

As a newbie with ActiveScaffold - I have a column of integers, I want
to calculate the sum.

Where  exactly in my app, do I:

config.columns[:my_column].calculate = :sum

to get ActiveScaffold to calculate the sum? PLEASE BE EXPLICIT:


rails todo
cd todo
rake db:create:all
script/generate scaffold Todo body:text title:string price:integer
done:boolean
rake db:migrate

I then install ActiveScaffold into vendors and modify my controllers
to include activescaffold.

Where do I do the necessary config.columns[:price].calculate = :sum??

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" 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/activescaffold?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to