function to check a value exists or not in array in RoR

Hello,

I need a function "to check a value exists or not in array" in RoR

Please help....

Check out the docs for ruby Array. You will find a function array.include? there.

Colin Law wrote:

Check out the docs for ruby Array. You will find a function
array.include?
there.

Hey...
thank you... very much.. 4 a fast reply...
Now my code is working :slight_smile: