Is there a better way to do this? - newbie question

Dustin,

You are probably not initializing @charities in the controller if
there are none. I guess you could do this (see below) although I
would probably just check your controller code and always init
@charities...

<% for charity in (@charities || []) %>
  <%= blah blah blah %>
<% end %>