0
People need to calculate how many% of the Survivors (endpoint) were abducted and how many were not, but I have no idea how to do but it did not work, I do not know if I declared wrong also in Routes...I made this method here in model model
def percentage_abducted
if(abducted == true )
return abducted/servivor.all * 100
else
return abducted/servivor.all * 100
end
end