From: Gavin Kistner Date: 2005-04-22T21:55:46+09:00 Subject: Re: for .. in .. else? On Apr 22, 2005, at 6:27 AM, Douglas Livingstone wrote: > On 4/21/05, Hal Fulton wrote: >> >> FWIW I'll offer this (untested) alternative: >> >> >> >> <% unless song_list.each do |song|%> >> >> <% end.empty? %> >> >> <% end %> >> >>
Songs
<%= song.name %>
no songs!
>> >> > > Now that is nice :) Shouldn't that be "if" instead of "unless"?