title: Is there an opposite function of slice function in Ruby?
body: <p>In this <a href="https://stackoverflow.com/questions/5424430/rails-security-avoiding-mass-assignment-altogether">post</a>, slice function is used to get only necessary elements of params. What would be the function I should use to exclude an element of params (such as user_id)?</p>
  
  <pre><code>Article.new(params[:article].slice(:title, :body))
  </code></pre>
  
  <p>Thank you.</p>