so let's say i have an array...
["pdf", "doc", "jpg", "tif", "gif"]
and i have a VALUE
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
ARRAY.each do |array|
if array.value == VALUE