JC: fixed ERB.new bug in new and edit. spec passes.