rails check if value exists in array code example Example: ruby array has element >> ['Cat', 'Dog', 'Bird'].include? 'Dog' => true