title: link_to with dynamic :class style in rails?
body: <p>How would one structure a link_to in rails based enabling and disabling it with a class, so for example a disable link would look like this;</p>
  
  <pre><code>&lt;%= link_to 'something', :somewhere, :class =&gt; 'btn btn-primary disabled' %&gt;
  </code></pre>
  
  <p>but enabled would look like this</p>
  
  <pre><code>&lt;%= link_to 'something', :somewhere, :class =&gt; 'btn btn-primary' %&gt;
  </code></pre>
  
  <p>Now rather then doing this;</p>
  
  <pre><code>&lt;% if current_user.is_admin? %&gt;
     &lt;%= link_to 'something', :somewhere, :class =&gt; 'btn btn-primary' %&gt;
  &lt;% else %&gt;
     &lt;%= link_to 'something', :somewhere, :class =&gt; 'btn btn-primary disabled' %&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p>is there a cleaner and simple way of doing it ?</p>