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

Validation for multiple models #98

Open Alimero opened 9 years ago

Alimero commented 9 years ago

How can i use form validations with multiple models? For example: model: function() { return Ember.RSVP.hash({ company: this.store.createRecord('company') accounts: this.store.createRecord('accounts') }); } I thought it could be like the following, but it didn't work. {{em-input property="model.company.name"}}

asaf commented 9 years ago

@Alimero Not sure blindly why it fails, maybe others have any recommendation ?

I will try when I have some time to put an example with nested objects.

Alimero commented 9 years ago

@asaf Hi, have you found some time yet for the example?

pedrokiefer commented 9 years ago

@Alimero just added a test case for this on ember-rapid-forms. It should work out of the box with any of the libraries.