title: Clone (a.k.a. duplicate) a Record
body: <p>I need to duplicate a record, with the same attributes of the original except ID of cource. I do:  </p>
  
  <p>In the View:</p>
  
  <pre><code>&lt;%= link_to "Duplicate", :action =&gt; "clone", :id =&gt; Some_Existing_ID %&gt;
  </code></pre>
  
  <p>And in the Controller:</p>
  
  <pre><code>def clone
    @item = Item.find(params[:id]).clone
  
    if @item.save
      flash[:notice] = 'Item was successfully cloned.'
    else
      flash[:notice] = 'ERROR: Item can\'t be cloned.'
    end
  
    redirect_to(items_path)
  end      
  </code></pre>
  
  <p>But nothing happens! In Console I figured out that clone generates the copy without ID.</p>
  
  <p>Any ideas ?</p>
  
  <p><strong>*> <em>BTW: I am running Rails 2.3.5 and Ruby 1.8</em></strong></p>