title: Display string if null value in db
body: <p>I have the following table which displays the results of a match and the selections for that match for the signed in user. I want to display a text value in the selection.winner and selection.value columns when there is no related record found in the database but I am unsure how to do this. My code is as follows:</p>
  
  <pre><code>&lt;% Fixture.where(:weekno =&gt; @gameweek.number).each do |fixture| %&gt; 
    &lt;tr&gt;
      &lt;td width="10"&gt;&lt;%= fixture.date.strftime("%d/%m/%Y")%&gt;&lt;/td&gt;
          &lt;td width="10"&gt;&lt;%= fixture.date.strftime("%H:%M") %&gt;&lt;/td&gt;
          &lt;td width="80"&gt;&lt;%= fixture.home_team %&gt;&lt;/td&gt; 
          &lt;td width="10"&gt;Vs.&lt;/td&gt;
          &lt;td width="80"&gt;&lt;%= fixture.away_team %&gt;&lt;/td&gt;
          &lt;td width="10"&gt;&lt;%= fixture.result %&gt;&lt;/td&gt;
          &lt;% Selection.where(:userid =&gt; current_user.id, :fixtureno =&gt; fixture.id).each do |selection| %&gt;       
              &lt;td width="10"&gt;&lt;%= selection.winner %&gt;&lt;/td&gt;       
              &lt;td width="10"&gt;&lt;%= selection.value %&gt;&lt;/td&gt;  
          &lt;% end %&gt;   
    &lt;/tr&gt;
  &lt;% end %&gt;
  </code></pre>