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