I've got this method:
def progress_percentage
(progress_index / positive_statuses.size) * 100
end
It's returning 0
and it should be 38.46
.
@lead.progress_index # this is 5
@lead.positive_statuses.size # this is 13
@lead.progress_percentage # this is 0?
The first two values have been confirmed. What is going on? Edit: confirmed in the view here.