title: Clean way in Rails to conditionally change the link_to location
body: <p>SO i have this link_to</p>
  
  <pre><code> &lt;li&gt;&lt;%= link_to "Home", root_path %&gt;&lt;/li&gt;
  </code></pre>
  
  <p>but if its an admin i want go to a different location like below...I know i can do this but is there a cleaner way</p>
  
  <pre><code> &lt;% if admin_user %&gt;
   &lt;li&gt;&lt;%= link_to "Home", admin_path(current_user) %&gt;&lt;/li&gt;
   &lt;% else %&gt;
   &lt;li&gt;&lt;%= link_to "Home", root_path %&gt;&lt;/li&gt;
   &lt;% end %&gt;
  </code></pre>