From: Scott Date: 2006-03-02T13:08:37+09:00 Subject: Re: cleaner Ruby in a rails view You can make sure that item.cart_item_optional_values is always equal to an array, be it empty or full, that way you're .each wont fail, it just wont have anything to enumerate over with an empty array.