fixing deprecated warning in erb