1
在Rails中,我添加了[GET] /photos/untagged
的路线。如何控制Ember中的rails资源路径选项?
它工作正常。
resources :photos do
collection do
get :untagged
end
end
但是,我无法在Ember中检索。
Ember可能会将此响应解析为对象。不是数组。我认为它在Ember中的冲突show
行动。我不想使用查询参数/photos?query=untagged
。
export default Ember.Route.extend({
model: function() {
return this.store.find("photo", "today");
}
});
我该如何解决这个问题?
谢谢。