Hello, I need a function "to check a value exists or not in array" in RoR Please help.... -- Posted via http://www.ruby-forum.com/.
Colin Law
2009-May-11 12:56 UTC
Re: function to check a value exists or not in array in RoR
Check out the docs for ruby Array. You will find a function array.include? there. 2009/5/11 Venkat Eee <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>> > Hello, > > I need a function "to check a value exists or not in array" in RoR > > Please help.... > -- > 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 -~----------~----~----~----~------~----~------~--~---
Venkat Eee
2009-May-11 13:28 UTC
Re: function to check a value exists or not in array in RoR
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-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>Hey... thank you... very much.. 4 a fast reply... Now my code is working :-) -- Posted via http://www.ruby-forum.com/.