title: rails if object.nil? then magic '' in views?
body: <p>This is one of those things, that maybe so simple I'll never find it because everyone else already knows it.</p>
  
  <p>I've got objects I have to check for nil in my views so I don't dereference a nil:</p>
  
  <pre><code>&lt;%= if tax_payment.user; tax_payment.user.name; end %&gt;
  </code></pre>
  
  <p>Or I could do this variant:</p>
  
  <pre><code>&lt;%= tax_payment.user ? tax_payment.user.name : '' %&gt;
  </code></pre>
  
  <p>So this is ok ... for most languages. But I feel like there must be some bit of shiny ruby or railness I'm still missing if this is the best I can do. </p>