我正在尝试按照此处的指南进行操作:
http://emberjs.com/guides/outlets/#toc_templates-controllers-and-views
我看到了这段:
This connectOutlet call does a few things for us:
It creates a new instance of App.PostsView, using the posts.handlebars template.
It sets the content property of postsController to a list of all of the available posts (App.Post.find()) and makes postsController the controller for the new App.PostsView.
It connects the new view to the outlet in application.handlebars.
我相信我仍然需要手动创建这些文件,对吧?如果是,那么后续问题是,对于 PostController,它应该是什么样子?
顺便说一句,我正在使用 ember-rails 并将生成器用于结构。谢谢!