我有得到linkTo車把助手問題工作使用灰燼PRE4 linkTo車把
我有這條路線設置:
this.resource("contact", function(){
this.route('new');
this.route('show', { path: "/:contactid" });
this.route('edit', { path: "edit/:contactid" });
}
在我的模板
我有以下代碼:
{{#each entry in controller.entries}}
{#linkTo "contact.show" entry href="true" }}test {{firstname}} {{lastname}}{{/linkTo}}
{{/each}}
生成的鏈接,雖然是/聯繫人/顯示/未定義
我在做什麼錯?
旁註:我沒有使用Ember.Data和模型。
的感謝!這也幫助我解決了其他問題 – AyKarsi