Correctly outputs file as ERB