0
How do I count up-to-date records in Rails? Next I have to receive this data in array format to pass and convert into json. I have table A which has many of Table B Through A I have to count how many records were updated per day in table B. For example day 02/02 5 updated records, day 03/02 9 records, day 04/02 10 records, day 05/02 0 records.
This is to generate a graph, I’m picking it up to do, the methods are getting too big and I think it has a much simpler shape, someone knows if you have how to do this?