Skip to content

Instantly share code, notes, and snippets.

@rstrobl
Created January 19, 2014 16:57
Show Gist options
  • Save rstrobl/8507517 to your computer and use it in GitHub Desktop.
Save rstrobl/8507517 to your computer and use it in GitHub Desktop.
App.Track = DS.Model.extend({
uri: DS.attr('string')
})
App.LikedTracksRoute = Ember.Route.extend({
model: function() {
return this.store.find('track', { filter: 'user_only', limit: 30 })
}
})
var track = this.store.createRecord('track', { uri: 'foobar' })
track.save()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment