{"action":"created","issue":{"url":"https://api.github.com/repos/Emerson/ember-form-master-2000/issues/15","labels_url":"https://api.github.com/repos/Emerson/ember-form-master-2000/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/Emerson/ember-form-master-2000/issues/15/comments","events_url":"https://api.github.com/repos/Emerson/ember-form-master-2000/issues/15/events","html_url":"https://github.com/Emerson/ember-form-master-2000/issues/15","id":65506001,"number":15,"title":"Using form master with dockyard/ember-validations","user":{"login":"constantm","id":292439,"avatar_url":"https://avatars.githubusercontent.com/u/292439?v=3","gravatar_id":"","url":"https://api.github.com/users/constantm","html_url":"https://github.com/constantm","followers_url":"https://api.github.com/users/constantm/followers","following_url":"https://api.github.com/users/constantm/following{/other_user}","gists_url":"https://api.github.com/users/constantm/gists{/gist_id}","starred_url":"https://api.github.com/users/constantm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/constantm/subscriptions","organizations_url":"https://api.github.com/users/constantm/orgs","repos_url":"https://api.github.com/users/constantm/repos","events_url":"https://api.github.com/users/constantm/events{/privacy}","received_events_url":"https://api.github.com/users/constantm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":18,"created_at":"2015-03-31T17:37:40Z","updated_at":"2015-05-11T14:30:36Z","closed_at":null,"body":"Hi there!\r\n\r\nI'm new to Ember and trying to get up and running with EFM2000 and ember-validations. I've gotten it to work up to a point, but I'm not sure where to go from here. At the moment, my validations work in the front end, which is great. The two problems I have are:\r\n\r\n- The new template starts out with validation failed. How do I start with a non-validated object that updates per field as I go along?\r\n- The` has-error` class never gets removed, even if validation passes. I had a look and the errors object it's looking at is empty. Why could it be that the class doesn't get removed?\r\n\r\nMy code is as follows:\r\n\r\n```\r\n//app/controllers/clients/new.js\r\n\r\nimport Ember from 'ember';\r\nimport EmberValidations from 'ember-validations';\r\n\r\nexport default Ember.Controller.extend(EmberValidations.Mixin, {\r\n  validations: {\r\n    clientName: {\r\n      presence: true,\r\n      length: { minimum: 5 }\r\n    },\r\n    clientEmail: {\r\n      presence: true,\r\n      length: { minimum: 5 }\r\n    }\r\n  },\r\n\r\n  actions: {\r\n    saveClient: function(){\r\n      var newClient = this.store.createRecord('client', {\r\n          clientName: this.get('clientName'),\r\n          clientEmail: this.get('clientEmail')\r\n      });\r\n      newClient.save();\r\n      this.setProperties({\r\n          clientName: '',\r\n          clientEmail: ''\r\n      });\r\n    }\r\n  }\r\n});\r\n```\r\n\r\n```\r\n//app/templates/clients/new.hbs\r\n\r\n{{#fm-form action='saveClient'}}\r\n\t{{fm-field type='text' value=clientName label='Client Name' errors=controller.errors.clientName}}\r\n\t{{fm-field type='text' value=clientEmail label='Client Email' errors=controller.errors.clientEmail}}\r\n\t{{fm-submit value='Save Client'}}\r\n{{/fm-form}}\r\n```\r\n\r\n```\r\n//app/templates/models/client.js\r\n\r\nimport DS from 'ember-data';\r\n\r\nexport default DS.Model.extend({\r\n  clientName: DS.attr('string'),\r\n\tclientEmail: DS.attr('string')\r\n});\r\n```\r\n\r\nAs said, I'm super new to Ember so please tell me if I'm being stupid. :)"},"comment":{"url":"https://api.github.com/repos/Emerson/ember-form-master-2000/issues/comments/100926461","html_url":"https://github.com/Emerson/ember-form-master-2000/issues/15#issuecomment-100926461","issue_url":"https://api.github.com/repos/Emerson/ember-form-master-2000/issues/15","id":100926461,"user":{"login":"Emerson","id":186545,"avatar_url":"https://avatars.githubusercontent.com/u/186545?v=3","gravatar_id":"","url":"https://api.github.com/users/Emerson","html_url":"https://github.com/Emerson","followers_url":"https://api.github.com/users/Emerson/followers","following_url":"https://api.github.com/users/Emerson/following{/other_user}","gists_url":"https://api.github.com/users/Emerson/gists{/gist_id}","starred_url":"https://api.github.com/users/Emerson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Emerson/subscriptions","organizations_url":"https://api.github.com/users/Emerson/orgs","repos_url":"https://api.github.com/users/Emerson/repos","events_url":"https://api.github.com/users/Emerson/events{/privacy}","received_events_url":"https://api.github.com/users/Emerson/received_events","type":"User","site_admin":false},"created_at":"2015-05-11T14:30:36Z","updated_at":"2015-05-11T14:30:36Z","body":"@ScottSmix - made some initial progress using your syntax suggestion _(not pushed yet)_. I think it's going to work."}}