Find element in array of hashes

Am 29.06.2013 20:18, schrieb Joel P.:

It’s worrying that so many people who put their code problems on here
seem to manually type what they’re looking at, instead of using
copy-paste.

At least as worrying is that people attach jpg(!) screenshots of text.

:slight_smile:

Sorry guys for not Copyind and Pasting, but the array was generated
dinamically by rails from the sql statement. At the same time I am so
happy that I found a place where people really try to help each other.
Thank
you

Am 30.06.2013 17:34, schrieb Rodrigo L.:

Sorry guys for not Copyind and Pasting. But at the same time I am so
happy that I found a place where people really help each other. Thank
you

We’re always trying to be helpful :slight_smile:

And remember: the more precise the information you give, the better
we can help. Generally, it’s good practice to make extensive use
of ‘irb’ for experimenting/debugging, and often it’s also helpful
to include some ‘puts myvar’, or ‘p myvar’ statements in the code,
to see what is actually going on.

Have fun hacking Ruby,
Marcus