title: How do I redirect to root - public/index.html?
body: <p>I wish to do a redirection to index.html in my application/public folder.</p>
  
  <pre><code>def get_current_user
     @current_user = current_user
     if @current_user.nil?  
        redirect_to root_path
     end 
  end
  </code></pre>
  
  <p>How do I achieve this ?</p>
  
  <p>I haven't modified the root in my routes.rb ( Its still commented )</p>
  
  <pre><code> # root :to =&gt; "welcome#index"
  </code></pre>
  
  <p>I get an error saying root_path is undefined.</p>
  
  <p>How do I modify routes.rb so that root_path points to public/index.html ?</p>