Forum: Ruby on Rails function to check a value exists or not in array in RoR

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
D81c1821bb5fd0bb179a331175751908?d=identicon&s=25 Venkat Eee (venkat_ruby)
on 2009-05-11 14:52
Hello,

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

Please help....
5f94b9b346c2aa648a80bc259978e5bc?d=identicon&s=25 Colin Law (Guest)
on 2009-05-11 14:57
(Received via mailing list)
Check out the docs for ruby Array.  You will find a function
array.include?
there.

2009/5/11 Venkat Eee <rails-mailing-list@andreas-s.net>
D81c1821bb5fd0bb179a331175751908?d=identicon&s=25 Venkat Eee (venkat_ruby)
on 2009-05-11 15:28
Colin Law wrote:
> Check out the docs for ruby Array.  You will find a function
> array.include?
> there.
>
> 2009/5/11 Venkat Eee <rails-mailing-list@andreas-s.net>

Hey...
thank you... very much.. 4 a fast reply...
Now my code is working :-)
This topic is locked and can not be replied to.