Tagged Questions
0
votes
0answers
38 views
ember-data hasMany and belongsTo (habtm)
I'm trying to learn new thing in ember every day and I'm stuck with ember-data and hasMany associations.
used libs
Rails 3.2.13
gem act_as_taggable_on
ember RC2
ember-data (rev: 12), RESTfulAdapter
...
0
votes
1answer
54 views
EmberJS Rails API security
Setup is an Ember frontend with a rails backend using JSON api.
Everything is going fine but some questions do come up:
How do I ensure only the emberjs application consumes the api? I wouldn't want ...
6
votes
1answer
261 views
Ember.js / Rails and associations: how to submit back to Rails a record and its associations?
Say you have two Rails models with association:
class Foo < ActiveRecord::Base
attr_accessible :name
belongs_to :moo
end
class Moo < ActiveRecord::Base
attr_accessible :name
has_many ...
1
vote
2answers
247 views
Ember-data check if model was found in store when deserializing through router
I have an object route in the router (using ember-data with standard REST backend) with connectOutlets that simply deserializes and loads the object and plugs it into the outlet.
# inside router
...
1
vote
1answer
195 views
ember-data and how to trigger commit when all bindings and observers have updated?
I have a Item model that has many Sections. Each Item is stored in mongodb and the sections are embedded documents, so i when i get an item the json contains the sections.
When i change a ...
1
vote
1answer
1k views
Ember-data, hasMany relationship, loading sub-collection, nested route
I need to load a model from a rails backend with ember-data and its default REST adaptor. I have a model that has many relationship with another one :
App.Post = DS.Model.extend({
title: ...