indexiatech / ember-forms

Smart, Intuitive forms for Ember.js styled with Bootstrap, Multi layouts and Validation support.
http://indexiatech.github.io/ember-forms
Apache License 2.0
218 stars 45 forks source link

Ember DS.errors in activeModelAdapter #45

Open marcpar opened 9 years ago

marcpar commented 9 years ago

great forms plugin for ember. How do you handle DS.Errrors?

my response from the serve is this

{ "errors": { "location": [ "must be unqiue" ] } }

asaf commented 9 years ago

@marcpar Hey,

Look at has_property, currently the errors handled by expecting the models to have exactly this structure, I'm not sure about DS.Errors (I'll check it out) but if you can have your models define the described error object it'll work fine.

Emerson commented 9 years ago

@marcpar - would love it if you could check out my PR that handles DS.Errors and let me know if it fixes things for you.