diff --git a/app/views/email/edit_email.html.erb b/app/views/email/edit_email.html.erb index 62d936d..8acc41c 100644 --- a/app/views/email/edit_email.html.erb +++ b/app/views/email/edit_email.html.erb @@ -31,9 +31,9 @@ <% elsif ['property_usage','note'].include?(k) %> <%= property[k].collect{|k,v| v}.uniq.join('/') rescue nil %> <% elsif k=='owners' %> - <%= property.owner_profiles.collect{|v| v.name}.join(', ') %> + <%= property.owner_profiles.collect{|v| v.name}.join(', ') rescue nil %> <% elsif ['category','property_location'].include?(k) %> - <%= v.title %> + <%= v.title rescue nil %> <% elsif k == 'can_be_hired' %> <%= v ? t('yes_') : t('no_') %> <% else %>