Hello RoR Developers, I have tiny problem about comparison. I have a array and hash. I want to compare array elements with hash keys. more details: this is my hash, I create it from yaml file my yaml file template1: template_of_roster3: template_of_roster2 template_of_roster4: template_of_roster3 @get_config=YAML.load(File.open("#{PATH_IM}/config/converter.yml")) @get_config == Hash @my_hash==Hash @enterprises=@get_config["template1"] and my array @my_array=["template_of_roster","template_of_roster2","template_of_roster3"] my question here is that how can I compare array with hash keys and how can I can send warning message to user? @my_array.eql?(@@my_hash.key)==false warn "warning message" something like this. thanks.. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---