title: access url helpers from rails engine generated pages
body: <p>I actually have this in rails layout:</p>
  
  <pre><code>&lt;li&gt;&lt;%= link_to "Blog Posts", root_path %&gt;&lt;/li&gt;
  </code></pre>
  
  <p>But when I added <code>blogit</code> gem it started to following error for urls associated with <code>blogit</code>:</p>
  
  <pre><code>undefined local variable or method `root_path' for #&lt;#&lt;Class:0x007f644864ce00&gt;:0x007f6449e8faf8&gt;
  </code></pre>
  
  <p>So I suspect url helpers are not accessible from there. So what can be done to make them accessible ? I have tried by adding this in the layout:</p>
  
  <pre><code>&lt;% include Rails.application.routes.url_helpers %&gt;
  </code></pre>
  
  <p>but it could not help me much.</p>