Skip to content

Instantly share code, notes, and snippets.

@g8anusha
g8anusha / controllers.application.js
Created July 27, 2017 02:22 — forked from czosel/controllers.application.js
ember-validated-form with custom textareas
import Ember from 'ember';
import UserValidations from 'twiddle/validations/user';
export default Ember.Controller.extend({
UserValidations,
actions: {
submit(model) {
console.log('submit', model)
model.save()
@g8anusha
g8anusha / controllers.application.js
Created July 23, 2017 10:22 — forked from czosel/controllers.application.js
ember-validated-form with custom textareas
import Ember from 'ember';
import UserValidations from 'twiddle/validations/user';
export default Ember.Controller.extend({
UserValidations,
model: Ember.computed.alias('model.user'),
actions: {
submit(model) {