Gavin Kistner
4/22/2005 12:56:00 PM
On Apr 22, 2005, at 6:27 AM, Douglas Livingstone wrote:
> On 4/21/05, Hal Fulton <hal9000@hypermetrics.com> wrote:
>>
>> FWIW I'll offer this (untested) alternative:
>>
>> <table>
>> <tr><th>Songs</th></tr>
>> <% unless song_list.each do |song|%>
>> <tr><td><%= song.name %></td></tr>
>> <% end.empty? %>
>> <tr><td>no songs!</td></tr>
>> <% end %>
>> </tr>
>> </table>
>>
>>
>
> Now that is nice :)
Shouldn't that be "if" instead of "unless"?