JC: added @erb_code to controller for create/update. spec passes.