更新时间:2022-06-14 23:28:27
我在诀窍是使用 model
而不是 this
来构建编辑路径:
The trick is to build the edit route with model
instead of this
:
%script#post{type: "text/x-handlebars"}
%h2= hb 'title'
= hb 'body'
%p
= hb 'linkTo "post.edit" model' do
Edit
= hb 'outlet'