ember-data is a data persistence extension for the Ember.js framework.

learn more… | top users | synonyms

0
votes
0answers
4 views

How to handle server response errors with ember data

What is the ember-data's current default expected response from the server if it got something other than 200, so it doesn't throw an uncaught exception but instead parses the errors for later use? ...
1
vote
0answers
15 views

Ember multiple view in same template

Im expanding the Todo example of emberjs main site -> http://emberjs.com/guides/getting-started/accepting-edits/ I try to add an extra field to the model called body, and add the same logic, ...
0
votes
0answers
21 views

Polymorphism in ember models

I am fairly new to Ember and have hit a problem. I have 2 Models, Question and Post which are of type Message: App.ListItem = DS.Model.extend({ Id: DS.attr('string'), messageType: ...
0
votes
0answers
27 views

Make Jersey restful server compliant with ember data

I currently run a server that server data such as: single entity {"id":"11","name":"hello",....} list of entities [{single entity format},{},...] However, ember expects data in the format of ...
0
votes
1answer
21 views

Ember.js: Computed property involving other controller not refreshing upon load of model

I have the following code: App.UserController = App.EditableController.extend({ needs: 'application', test: function() { return this.get('controller.application.me.email'); ...
1
vote
0answers
21 views

Express REST server losing payload from Ember-data PUT

I am extending the standard Ember example project (in coffeescript) to talk to an express/mongoose RESTful server. I have successfully fetched all and single records via POSTS using the recommended: ...
2
votes
1answer
27 views

Is there a way to get an Ember model's hasMany children without specifying relationship name?

Say you have a model: App.Contact = DS.Model.extend name: DS.attr('string') addresses: DS.hasMany('App.Address') I know I can grab the addresses by simply doing: @get('model').get('addresses') ...
1
vote
1answer
25 views

ember (+ ember-auth) linkTo loggedIn user profile

To get straight to the point, I have an app with a profile accessible like that: this.resource('user', {path: '/user/:user_id'}); This can accessed from visitors and (logged in users). Now I also ...
1
vote
1answer
24 views

Ember.js Dynamic Model Properties

Ember.js (and Ember Data) allows me to specify properties of a model, such as id, label and description. But I allow my users to add their own properties to any model, which are obviously impossible ...
1
vote
0answers
38 views

Retrieving ember fixture model via “needs”

Doing a basic update to an Ember Fixture record using the new "needs" helper instead of the old "controllerFor". Here is a distilled version of my code: App.Item = DS.Model.extend({ utensil: ...
1
vote
1answer
28 views

Ember Data - rending one to many in template

I am trying to return a list of all of the Sponsorship Types followed by any Partners that may be under that Sponsorship Type. I am using the Fixture Adaptor and here are my arrays: var ...
0
votes
0answers
12 views

How to use Ember Data with my Java Servlet based API

I would like to use Ember Data with my Server, which is developed using Java servlets, which has some dependency on cookies as well. From Ember Docs, I understood, the default adapter that ships with ...
0
votes
1answer
39 views

ember-data adapter to read from cloudant RESTful API

The cloudant RESTful API is fairly simple but doesn't match the way ember-data expects things to be. How can I customize or create an Adapter that deals with these issues... In my specific case I ...
1
vote
2answers
23 views

how to deal with the unknown id with ember-data and emberjs

Based on Rails, Emberjs and ember-data Route App.Router.map -> @resource "sentences", -> @resource "sentence", path: ":sentence_id", -> Model App.Sentence = DS.Model.extend( ...
1
vote
1answer
34 views

Ember.js REST Ajax Success and Error

I'd like to know what the success and error do in the Ember.js RESTAdapter's ajax function. hash.success = function(json) { Ember.run(null, resolve, json); }; hash.error = function(jqXHR, ...

1 2 3 4 5 64
15 30 50 per page