<% cnt = 0 %> <% @addresses.each { |o| %> <% addr = address_for_geocode(o) %> <% if addr.present? %> <% cnt += 1 %> <% end %> <% } %>
AddressLatLon
<%= addr %>
<% if cnt == 0 %>
No objects to geocode!
<% end %>