rails if object.nil? then magic ” in views? December 7, 2023 by Tarik What about: <%= tax_payment.user.name if tax_payment.user %>