JC: added @erb_code to controller for create/update. added wf_event to model to fix wf validate. Fixed typo in validate argument name. added spec for failed wf validate. spec passes.