title: rails way of doing if/else logic
body: <p>I have following code which seems to work fine:</p>
  
  <pre><code>  &lt;%if group.employees.count &gt; 0%&gt;
      &lt;td&gt;&lt;%= link_to group.employees.count.to_s, {:action =&gt; 'index', :controller =&gt; 'employees'}, {:id=&gt;group.id}%&gt;&lt;/td&gt;
    &lt;%else%&gt;
      &lt;td&gt;&lt;%= link_to "Add Employee", {:action =&gt; 'new', :controller =&gt; 'employees'}%&gt;&lt;/td&gt;        
    &lt;%end%&gt;
  </code></pre>
  
  <p>I'm just wondering how this can be written in more rails friendly way using unless?</p>