basic search ruby magic