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