title: Rails - Update object from params
body: <p>I'd like to know if there is a way to bind params to an existing object in order to edit it. I'd like to do something like this, but to edit the object :</p>
  
  <pre><code>@object = Object.new(params[:object])
  </code></pre>
  
  <p>So something like :</p>
  
  <pre><code>@object = Object.find(params[:object_id])
  @object.edit(params[:object])
  </code></pre>
  
  <p><code>params[:object]</code> comes from a <code>form_for</code></p>
  
  <p>Any idea ?</p>