updating ERB reference to variables