Fix depracated variable access method in ruby template