title: Rails single line if else statement
body: <p>I'm trying to write a single line if else statement in a view.</p>
  
  <pre><code>&lt;%= collection.name ? collection.name : @miniature.name %&gt;
  </code></pre>
  
  <p>I want it to put collection.name if one exists, otherwise I want it to put @miniature.name</p>