Replaced @template_variables in erb templates with template_variables