Counting records updated by day rails

0

How do I count updated records by date in rails? Next I have to receive this data in an array format to repass and convert to json. I have Table A that has many of Table B Through A I have to count how many records were updated per day in table B. For example 02/02 day 5 records updated, day 03/02 9 records, day 04/02 10 records, day 05/02 0 registrations.

This is to generate a graph, I'm getting it to do, the methods are getting very big and I think it has a much simpler shape, does anyone know if it has to do this?

    
asked by anonymous 08.02.2017 / 14:39

1 answer

0

Your question has been somewhat vague, but I think this is what you are looking for:

link

    
08.02.2017 / 16:39