Array find_index

select code,name,gender from employee
the result of above query is obtained in an array
ar_employee=con.exec "select code,name,gender from employee
I want to find a specific code in the array by using array.find_index but I am confused how to use it as the array contains fields (code,name,gender)

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs