Can I check include? at least one element in array with ruby on rails?? Here my example:
a = 1234
b = [1,5,6,7,8....]
if a.include?b[0] == true
app => return true
if a.include?b[0] == true and a.include?b[1] == false and a.include?b[2] == false and ......
app still return true
In the real app, I can't call b[0],b[1],b[2]... like that,So, how can I do to check include? at least one element in array, in rails app? Please help me :)
bhas an element that == toaright ?