title: I cant find odd or even in rails
body: <p>i.e &quot;20200612&quot;, this program execute 2+2+0+1, all I want is 2+2+6+2 the sum of all even  numbers</p>
  <pre><code>(task.year.to_s +
   task.month.to_s +
   task.numberofemployer.to_s).split(//)
                              .map{|p|   p.to_i}
                              .select.each_with_index { |_, p| p.even? }.sum
  </code></pre>