I'm planning on making a table in my view that is a summary of the data I've collected in my database.
For example, what I want to do is count how many times '1' is the response for gender, and display that count. I've had trouble making counters in Ruby before, so I wanted to find out how I should do this before I shoot myself in the foot.
I can imagine there is a database function call that sums the the column - but do I perform this action in my view? Or is it something a bit more tricky related to the MVC.
Thank you for your time.