title: determining if at least one pair of fields are filled out
body: <p>So in my rails app I have a column of text boxes in pairs.  There are 4 pairs of textboxes.</p>
  
  <p>Just one of these pairs of text box needs to be filled out (with both textboxes in that pair filled out) for it to be valid.</p>
  
  <p>So I'm trying to loop through them all and add them to a multi dimensional array and to check that at least one row(?) in the array has both values.</p>
  
  <pre><code>  def no__values?
      all_values = Array.new
      txt_a_values = Array.new
      txt_b_values = Array.new
  
      self.item.line_items.each do |item|
        txt_a_values &lt;&lt; item.single.nil? # this is a value from the text box a
        txt_b_values &lt;&lt; item.aggregate.nil? # this is a value from the text box b
      end
  
      all_values &lt;&lt; txt_a_values #create multi dimensional array
      all_values &lt;&lt; txt_b_values
  
      all_values.each do |v|
        ??? # there needs to be one pair in the array which has both values
      end
    end
  </code></pre>
  
  <p>So it should create an array like this</p>
  
  <pre><code>[true][true] # both textboxes are nil
  [false][false] # both textboxes have values
  [true][true] # both textboxes are nil
  [true][true] # both textboxes are nil
  </code></pre>
  
  <p>the above scenario is valid since there is one pair which BOTH have values</p>
  
  <p>I really don't like the way I'm progressing with this, so I',m looking for some help.</p>