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