title: question on create new instance of ActiveRecord model
body: <p>if I have a ActiveRecord model:</p>
  
  <pre><code>class Car &lt; ActiveRecord::Base
    belongs_to :store
  end
  </code></pre>
  
  <p>In, Database, the Car table has columns "store_id".</p>
  
  <p>Now, I would like to create a car instance and save to DB,(suppose there is a store instance called "STORE_INSTANCE"), should I use:</p>
  
  <pre><code>car1=Car.new({:store=&gt;STORE_INSTANCE})
  </code></pre>
  
  <p>or</p>
  
  <pre><code>car1=Car.new({:store_id=&gt;STORE_INSTANCE.id})
  </code></pre>
  
  <p>Which one is correct? or both are OK??</p>