title: Rails - Save item from index and write it to a new Model
body: <p>I have a list of tweets on my index (Twit model, twits controller) with a checkbox aside. What I'd like to do is to save checked tweets to an other model (Repost model, reposts controller).</p>
  
  <p>The Repost model will have the same attribute as the Twit one. I just want to select specific tweets from my index View and save them to the Repost model.</p>
  
  <p>Here is my View:</p>
  
  <pre><code>&lt;%= form_tag reposts_path do %&gt;
  &lt;ul&gt;
    &lt;% @twits.each do |twit| %&gt;
      &lt;li&gt;
        &lt;%= twit.like %&gt; likes
        &lt;%= check_box_tag "repost_twit_#{twit.id}"  %&gt; -
        &lt;%= link_to twit_path(twit) do %&gt;
          &lt;i class="glyphicon glyphicon-eye-open"&gt;&lt;/i&gt;
        &lt;% end %&gt; -
        &lt;%= link_to twit_path(twit), method: :delete do %&gt;
          &lt;i class="glyphicon glyphicon-trash"&gt;&lt;/i&gt;
        &lt;% end %&gt;
      &lt;/li&gt;
    &lt;% end %&gt;
  &lt;/ul&gt;
  &lt;ul&gt;
    &lt;li&gt;&lt;/li&gt;
  &lt;/ul&gt;
  &lt;%= submit_tag "Add to your Repost library", class: "btn btn-primary" %&gt;
  </code></pre>
  
     
  
  <p>I have the logic as I succeed doing it within my Rails console, but I can't do it within the app... It will be like this <code>Repost.create(like:Twit.first.like)</code></p>
  
  <p>I am obviously missing something. Thanks for your help.</p>