Hi,

I have a hash something like {:schools_name =>
''test",  :schools_address => "test, etc....}

What i need to know is does any of the keys contain the word "schools"
in it.

So

hash.has_key? :schools_name will return true

But how can i get it to return true if part of any key contains the
word "schools"

I can think of a couple of ways using a loop but surely there has to
be a quick 1 line way?

JB

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to