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.

2009/5/11 Venkat E. [email protected]

Colin L. wrote:

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

2009/5/11 Venkat E. [email protected]

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs