Skip to content

Instantly share code, notes, and snippets.

@reset
Created February 14, 2014 01:41
Show Gist options
  • Save reset/8994325 to your computer and use it in GitHub Desktop.
Save reset/8994325 to your computer and use it in GitHub Desktop.
self = this;
this.store.find('account', {name: this.get('accountName')}).then(function(account) {
Ember.Logger.log(account.get('name'));
Ember.Logger.log(account.get('id'));
self.transitionToRoute('accounts.account', account.get('id'));
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment