Showing multiple logs on one day as one
I have a bunch of log objects that have a date. In the view I am showing
them through
<% @time_logs.each do |timelog| %>
If I wanted to make it so that when multiple ones only showed as one if
that happened on the same date IE:
Before
Date: 10/11/11 Something: 1 Something else: 2
Date: 10/11/11 Something: 3 Something else: 4
After
Date: 10/11/11 Something: 4 Something else: 6
Would I do this in the model, controller, view? Do I have to make a new
controller? And what is the best way of doing this without having to alter
the data or save it in another database and pull from that.
No comments:
Post a Comment