Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

validatePresenceOf no such method on Model?

$
0
0
I'm using JMVC 3.2.

I'm trying my hand at Model validation and am having difficulty using validatePresenceOf.

(Inside a Model)
  1. this.validatePresenceOf(['name', 'age']);
I get a console error:

Object #<Class> has no method 'validatePresenceOf'

I've stolen in 'jquery/model/validations' but no success. Any ideas?

Viewing all articles
Browse latest Browse all 3491

Trending Articles