I am using Rails 3.1.0 and I would like to get a particular value from a multidimensional array. That is, I have the following
array = [ ['Text1', 's1'], ['Text2', 's2'], ['Text3', 's3'] ] and, for example, I would like to search in the above array the string s3 so to get the corresponding value Text3. The same for s1 so to get the Text1 and for s2 so to get the Text2.
How can I make that?