--_a50b8040-701a-464b-9403-c8805008b4a8_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable > This way, "non-courses" appear as empty arrays. I still don't know how > to neatly get rid of the empty arrays... I tried .compact! but that > doesn't seem to work. Try #flatten! instead. #compact! just gets rid of nil entries, and an empty array is not the same as nil. - Ehsan _________________________________________________________________ Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox. http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_1-_a50b8040-701a-464b-9403-c8805008b4a8_--