Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validation for multiple models #98

Open
Alimero opened this issue May 11, 2015 · 3 comments
Open

Validation for multiple models #98

Alimero opened this issue May 11, 2015 · 3 comments

Comments

@Alimero
Copy link

Alimero commented May 11, 2015

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
Copy link
Contributor

asaf commented May 11, 2015

@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
Copy link
Author

Alimero commented Jun 3, 2015

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

@pedrokiefer
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants