title: How to detect if rails is at the root url?
body: <p>What I want is seems simple.</p>
  
  <p>In my application helper i setup this</p>
  
  <pre><code>module ApplicationHelper
  
  def isroot
  if root_url 
  @container = "mainbox"
  else
  @container = "maincontainerbox"
  end
  end
  end
  </code></pre>
  
  <p>in my application layout i have this</p>
  
  <pre><code> &lt;div id="&lt;%= isroot %&gt;"&gt;
  </code></pre>
  
  <p>How do I find out if my application is at the homepage.  if not do something else.</p>