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


#1

Hello,

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

Please help…


#2

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

2009/5/11 Venkat E. removed_email_address@domain.invalid


#3

Colin L. wrote:

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

2009/5/11 Venkat E. removed_email_address@domain.invalid

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