Ember模板无法渲染

时间:2016-08-31 15:37:47

标签: ruby-on-rails ember.js

我有我的rails api将任务列表作为json提供给url

  

localhost.domain.com/tasks

我已将ember中的路由定义为

router.js
this.route('tasks',function() {
    this.route('index', {path: ''});
}

我有" localhost.domain.com/tasks"

的模板

当我点击路线时,它没有渲染模板,而是加载了服务器响应JSON

有没有限制,服务器和ember路由必须不同?如果没有,如何克服这个?

0 个答案:

没有答案
相关问题