Fixed deprecated variables in *.erb template