also instead of find you can use grep - http://apidock.com/ruby/Enumerable/grep