diff --git a/tests/dummy/app/templates/demos/validation.hbs b/tests/dummy/app/templates/demos/validation.hbs index 8319676..582b735 100644 --- a/tests/dummy/app/templates/demos/validation.hbs +++ b/tests/dummy/app/templates/demos/validation.hbs @@ -5,15 +5,15 @@
-

The ember-cli-dynamic-forms addon provides you with a way to define and apply reusable validations to your dynamic forms. All you have to do is drop a JavaScript file in the /app/forms/validations directory and its made available to your form as a validator, which can be applied to a form field, as it is updated.

+

The ember-cli-dynamic-forms addon provides you with a way to define and apply reusable validations to your dynamic forms. All you have to do is drop a JavaScript file in the /app/dynamic-forms/validations directory and its made available to your form as a validator, which can be applied to a form field, as it is updated.

Start by creating a custom validation using the ember-cli validation blueprint generate command:

-

ember g dynamic-form-validator drinking-age ... which will generate the file /app/dynamic-forms/validation/drinking-age.js

+

ember g dynamic-form-validator drinking-age ... which will generate the file /app/dynamic-forms/validations/drinking-age.js

Now, validate that the age provided is appropriate when beer is selected:

{{#highlight-js}} -
/app/forms/validations/drinking-age.jsimport Ember from 'ember';
+
/app/dynamic-forms/validations/drinking-age.jsimport Ember from 'ember';
 
 export default Ember.Object.extend({