How to compare two arrays if they have similar values or not in ruby

Ruby and Rails Blog  > how-to, Ruby, Training >  How to compare two arrays if they have similar values or not in ruby