Questions tagged [ember-data]

Ember-data stands as a reliable data storage add-on designed specifically for the Ember.js framework.

What is the alternative method of sending a POST request instead of using PUT or DELETE in Ember?

Is there a way to update or delete a record using the POST verb in Ember RESTAdapter? The default behavior is to send json using PUT or DELETE verbs, but those are blocked where I work. I was wondering if there's a way to mimic Rails behavior by sending a ...

Accessing the URL directly in Ember does not display content, however, navigating from the homepage does

My Ember application is encountering issues when trying to directly access a URL sub route. It works fine if I navigate from the homepage first and then to the sub route. The problem arises with direct access because the page displays HTML code rather tha ...

An unexpected error occurred in the Ember route processing: Assertion Failed in the listing

After working diligently to integrate an Emberjs front end (utilizing Ember Data) with my Flask API backend, I have encountered a puzzling issue. Despite the adapter functioning correctly - as evidenced by the API being called when accessing the 'Listing' ...

In need of assistance with Ember data! Struggling to deserialize JSON into model

Here is the technology stack I'm currently using: Ember 1.10.0 Ember Data 1.0.0-beta.15 Within my application, I have defined a model as shown below: //models//acceptedtask.js import DS from "ember-data"; export default DS.Model.extend({ userAg ...

Updating a Record in Embe Data: A Step-by-Step Guide

I have retrieved a record of my 'item' model using the following code: store.find('item', 412).then(function(item){ ... }); This is how the model looks like: item :{ title: "mySuperItem", price: "45", comments: [ 2342 ...

When executing class methods, Ember.js encounters errors stating "method does not exist."

I am facing a situation where I need to trigger a model reload when a user clicks a refresh button. In the past, I successfully implemented this with Ember-Model. However, since migrating to Ember-Data, I am encountering an error when attempting to execute ...

Transforming Ember's ajax query string

Using ember-model, I am making a request like this: App.Video.find({'sort':'createdAt+asc'}); to retrieve a sorted list of videos. This should result in the following request: http://localhost:1337/api/v1/videos?sort=createdAt+asc How ...

Ways to showcase numerous records in Ember.js template using hasMany relationship?

The model I have defined looks something like this: App.Question = DS.Model.extend({ title: DS.attr( 'string' ), answers: DS.hasMany('App.Answer') }); App.Answer = DS.Model.extend({ title: DS.attr( 'string' ), wynikid: DS.attr( ...

Data relics: embedded items vanish from JSON data

My ticket-stats model is defined with the following attributes: import Model from 'ember-data/model'; import attr from 'ember-data/attr'; export default Model.extend({ opened24Hours: attr('number'), miRelated: attr('number'), autoClosed24Hou ...