title: Ruby why is my object saving without an ID?
body: <p>I feel like I'm missing something very basic, and someone can look at this and very quickly telling me what that is...</p>
  
  <pre><code>def create
      @user = User.find_by_id(create_params[:user_id])
      @plan = @user.plans.new(create_params)
      if @plan.save 
        puts @plan.inspect
      end
  end
  </code></pre>
  
  <p>Right now the <code>puts</code> statement returns this:</p>
  
  <pre><code>#&lt;Plan id: nil, zipcode: "02114", selected_plan: 5, user_id: 1&gt;
  </code></pre>
  
  <p>So basically.. all the attributes are there, but there's no id...</p>
  
  <p>More info:</p>
  
  <pre><code>create_params = {zipcode:"02114", selected_plan:"5", user_id: 1}
  </code></pre>
  
  <p>And if it's helpful to know, <code>save!</code> does work and successfully saves the plan with an id... and <code>plan.save == true</code> returns <code>true</code></p>