how to check whether something exists in an array rails code example Example: ruby array has element >> ['Cat', 'Dog', 'Bird'].include? 'Dog' => true