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