title: I follow token fields for mongodb and i am stopped in saving tokens in my mongo collections
body: <p>I have a author model</p>
  
  <pre><code>class Author
    include Mongoid::Document
    field :name
  
  end
  </code></pre>
  
  <p>In My article form i want to bring all authors</p>
  
  <pre><code> &lt;div class="field"&gt;
      &lt;%= f.label :author_tokens, "Authors" %&gt;&lt;br /&gt;
      &lt;%= f.text_field :author_tokens, "data-pre"=&gt; @article.authors.map(&amp;:attributes).to_json %&gt;
    &lt;/div&gt;
  </code></pre>
  
  <p>It is working. all authors name are seen. now i want to submit all author name i click inside Authors. what should be my article model for this? I am confuse. Here when i publish </p>
  
  <pre><code>{"utf8"=&gt;"✓",
   "authenticity_token"=&gt;"bE0PpLx+qBUJqIavfvpDOjzrhIHFku+IrgjnU0OLOC8=",
   "article"=&gt;{"name"=&gt;"ram",
   "published_on(1i)"=&gt;"2012",
   "published_on(2i)"=&gt;"8",
   "published_on(3i)"=&gt;"20",
   "author_tokens"=&gt;"",
   "content"=&gt;"fdsfds"},
   "commit"=&gt;"Create Article"}
  </code></pre>
  
  <p>author_tokens field is empty.
  I have my article model </p>
  
  <pre><code>class Article
  
    include Mongoid::Document
    include Mongoid::Timestamps
    include Mongoid::MultiParameterAttributes
    field :name
    field :content
    field :author_tokens
    field :token_inputs
   field :published_on, :type =&gt; Date 
   validates_presence_of :name,:content
  
  has_many :authors
   attr_reader :author_tokens
  
   def author_tokens=(ids)
   self.author_ids =ids.split
   end
  
  end
  </code></pre>
  
  <p>What should be my article model so that i can save all input author tokens name in my article collection?</p>