title: Remove object from has_many but don't delete the original record in Rails?
body: <p>I have this:</p>
  
  <pre><code>Post.paragraphs &lt;&lt; new_paragraph
  </code></pre>
  
  <p>And I need to remove paragraph by id = 3, so the following deletes the record completely:</p>
  
  <pre><code>Post.paragraphs.find(paragraph_id).destroy
  # or
  Post.paragraphs.find(paragraph_id).delete
  </code></pre>
  
  <p>I just need to remove a paragraph from has_many association. I tried to use <code>delete</code> and <code>destroy</code>. Both methods completely delete records from the associated tables. How can I just remove them from the "container"?</p>