Updating variables in template to Ruby instance variables to prevent warnings

Updating variables in template to Ruby instance variables to prevent warnings