insert failed: Method in meteor 1.3 and react
<p>I want insert simple text to the mongo database with react but, when i submit the form print this line in console:</p>

<p><code>insert failed: Method '/resolutions/insert' not found</code></p>

<p>Tips: <code>autopublish</code> and <code>insecure</code> already installed. and i have react 15 and meteor 1.3.1</p>

<p>Here is my code:</p>

<p><div class="snippet" data-lang="js" data-hide="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code>import { Meteor } from 'meteor/meteor';
import React from 'react';
import ReactDOM from 'react-dom';

Resolutions = new Mongo.Collection('resolutions');
Resolutions.allow({
  insert: function(userId,doc) {
    return true;
  }
});

// import './index.html';

export default class App extends React.Component {

  AddResolution(event) {
    let text = this.refs.resolutions.value.trim();
    // Insert into database
    Resolutions.insert({
      text: text,
      complete: false,
      createAt: new Date()
    });
    this.refs.resolutions.value = "";
    event.preventDefault();
  }
  render() {
    return (
      &lt;div&gt;
        &lt;h1&gt;My swsolutions&lt;/h1&gt;
        &lt;form className="new-resolution" onSubmit={this.AddResolution.bind(this)}&gt;
          &lt;input type="text" ref="resolutions" placeholder="Finish React Meteor"/&gt;
        &lt;/form&gt;
      &lt;/div&gt;
    );
  }
}</code></pre>
</div>
</div>
</p>