I have an array like this
records =
[
["a","1"],
["b","2"],
["c","3"]
]
I want to pull the number 3, given that I known I am searching for the value of "c".
I've tried this but no luck
search_for = 'c'
test = records.select{ |x| x=search_for}
I get back the whole array