在我的 ruby Volt 项目中,我收到以下错误:
AttributeBinding Error: #<NoMethodError: 'undefined method `name' for nil'>
我知道它来自尝试访问模型上的 name 属性,而它是 nil。我的路线文件如下:
client '/practices/new', component: 'admin', controller: 'offices', action: 'new'
'new' 方法将模型分配给缓冲区,但在页面加载时不会调用它。有谁知道为什么?