title: How can i remove blank nested form field?
body: <p>How can i reject the blank nested field in nested form in rails i am using this code:</p>
  
  <pre><code>class Award &lt; ActiveRecord::Base
    attr_accessible :category, :country_iso,:title, :year,:status ,:nomination_awards_attributes,:sponsor_awards_attributes,:city
    has_many :nomination_awards, dependent: :destroy
    has_many :sponsor_awards, dependent: :destroy
  
  
    accepts_nested_attributes_for :nomination_awards, :allow_destroy =&gt; true
    accepts_nested_attributes_for :sponsor_awards, :allow_destroy =&gt; true#,:reject_if =&gt; lambda { |a| a[:sponsor_id].blank? }
    validates :title,:category,:country_iso,:year,:city, :presence =&gt; true
  
  
  end
  </code></pre>