title: Rails: How do I check if a column has a value?
body: <p>How can I accomplish this?</p>
  
  <pre><code>&lt;% for agent in @broker.agents %&gt;
    ...
    &lt;% if agent.cell %&gt;&lt;span class="cell-number"&gt;Cell: &lt;%= agent.cell %&gt;&lt;/span&gt;&lt;% end %&gt;
    ...
  &lt;% end %&gt;
  </code></pre>
  
  <p>I want to test to see if the agent has a cell number, and if so, display what's inside the conditional.  What I have currently doesn't seem to work; it just displays "Cell: ".</p>
  
  <p>Thoughts?</p>