so let's say i have an array...
["pdf", "doc", "jpg", "tif", "gif"]
and i have a VALUE
"pdf"
how would i do something like
is this even possible this easily OR do i have to loop through the array testing the value each time? like soCode:if VALUE equals any element in ARRAY do something end
Code:ARRAY.each do |array| if array.value == VALUE do something end end





Bookmarks