私はEmber Auth Rails Demoに取り組んでおり、モデル UI の章で次のエラーが発生しています。
You cannot provide a template block if you also specified a templateName
これがどこから来ているのかわからず、テンプレート ブロックと templateName の両方を指定している場所がどこにもありません (この質問に示されているように)。これがどこで発生している可能性があるかについて何か考えはありますか? おそらくviewsディレクトリのどこか、おそらくauth.js.coffeeで考えていました。これは次のようになります。
Planbug.AuthView = Em.View.extend
templateName: 'auth'
または、views/auth/sign-in.js.coffee で、次のようになります。
Planbug.AuthSignInView = Em.View.extend
templateName: 'auth/sign-in'
email: null
password: null
submit: (event, view) ->
event.preventDefault()
event.stopPropagation()
Planbug.Auth.signIn
data:
email: @get 'email'
password: @get 'password'
デモを注意深く追おうとしていますが、どこかにタイプミスがあるか、少し違うことをしている可能性があります。競合を探す場所について何か考えはありますか?