title: What is the easiest way to duplicate an activerecord record?
body: <p>I want to make a copy of an ActiveRecord object, changing a single field in the process (in addition to the <strong>id</strong>).  What is the simplest way to accomplish this?</p>
  <p>I realize I could create a new record, and then iterate over each of the fields copying the data field-by-field - but I figured there must be an easier way to do this.</p>
  <p>Perhaps something like this:</p>
  <pre class="lang-ruby prettyprint-override"><code> new_record = Record.copy(:id)
  </code></pre>