Skip to content

Instantly share code, notes, and snippets.

@james-lukensow
Created November 3, 2013 23:07
Show Gist options
  • Save james-lukensow/7295891 to your computer and use it in GitHub Desktop.
Save james-lukensow/7295891 to your computer and use it in GitHub Desktop.
Geddy save association Error
tweetModel.save(function(err, tweet) {
if (err) {
console.log(err);
}
geddy.model.Topic.first({slug: 'xbox'}, function(err, topic) {
if (err) { throw err; }
tweetModel.addTopic(keywordTopic);
tweetModel.save(function(err, tweet) {
console.log('Tweet updated', tweet);
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment