insert failed: Method not found
ログ メッセージが表示されます。これは、次のスレッドに記載されている内容の結果である可能性があります。
しかし、私は方法を見ていません。より明確に説明できることを期待して、コードを示しましょう。私はCoffeescriptを使用しています:
if Meteor.isClient
@VINs = new Meteor.Collection("vins")
scoped_vins = @VINs
Template.vins.events =
"click .icon-plus-sign": ->
console.log "this is #{this}"
realVIN = $("#your-vin").val().replace /\D/g, ''
console.log "user id is: #{Meteor.userId()} vin is #{parseInt(realVIN)}"
VINs.insert number: parseInt(realVIN), owner: Meteor.userId() if Meteor.userId()
$("#your-vin").val('')
else
@VINs = new Meteor.Collection("vins")
私は完全に Meteor には無頓着ですが、上記のスレッドから収集したことは、コレクションがクライアントとサーバーで利用可能でなければならないということです。それは私がやったことではありませんか、それともコーヒーブラインドネスを開発していますか?
ありがとう!