title: Rails reject_if not working with .build?
body: <p>my code is here:</p>
  
  <pre><code>model A
  
  
  has_many :parent_leasing_configurations, :conditions =&gt; { :parent_id=&gt; nil }, :class_name=&gt; 'LeasingConfiguration'
  accepts_nested_attributes_for :parent_leasing_configurations
  </code></pre>
  
  <p>and view file: </p>
  
  <pre><code>&lt;%= f.fields_for :parent_leasing_configurations do |leasing_configuration| %&gt;
     &lt;tr class="&lt;%= 'tablefbAlternate' if (tr_alter%2==0) %&gt;"&gt;
       &lt;td class="bdr-lt-gry bdr-rt-gry bdr-top-gry tdlfpd"&gt;
        &lt;% if leasing_configuration.object.new_record? %&gt;
          &lt;%= leasing_configuration.text_field :name, :placeholder=&gt;"Enter New Category" %&gt;
        &lt;% else %&gt;
          &lt;%= leasing_configuration.object.name %&gt;
        &lt;% end %&gt;
      &lt;/td&gt;
      &lt;td class="bdr-rt-gry bdr-top-gry"&gt;&lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p>and i am updating in contoller:</p>
  
  <pre><code>@current_client.update_attributes(params[:client])
  </code></pre>
  
  <p>my problem is reject_if not working for new record.so every time empty record added.</p>
  
  <p>Any idea on this?</p>