added an erb line to fix error message