title: URL with two forward slashes
body: <p>In my Rails project, in my <code>index</code> view, I have a link</p>
  
  <pre><code>&lt;%= link_to 'Show all posts', show_all_path %&gt;
  </code></pre>
  
  <p>In <code>routes.rb</code>, I have a route:</p>
  
  <pre><code>match "show_all" =&gt; "Posts#show_all"
  </code></pre>
  
  <p>When I click on that link, it goes from</p>
  
  <pre><code>http://&lt;domain name&gt;/my_rails_project
  </code></pre>
  
  <p>to</p>
  
  <pre><code>http://&lt;domain name&gt;/my_rails_project//show_all
  </code></pre>
  
  <p>It works. However, having two forward slashes doesn't look very nice. Can I make it so that only one forward slash appear?</p>
  
  <p>EDIT: These are some of my files:</p>
  
  <p>config/environment.rb</p>
  
  <pre><code>require File.expand_path('../application', __FILE__) 
  Blog::Application.initialize!
  </code></pre>
  
  <p>config/environments/development.rb </p>
  
  <pre><code>Blog::Application.configure do 
    config.cache_classes = false 
    config.whiny_nils = true 
    config.consider_all_requests_local = true 
    config.action_view.debug_rjs = true 
    config.action_controller.perform_caching = false 
    config.action_mailer.raise_delivery_errors = false 
    config.active_support.deprecation = :log 
    config.action_dispatch.best_standards_support = :builtin 
    config.action_controller.asset_host = "//pauls.scripts.asu.edu/blog/public" 
  end
  </code></pre>
  
  <p>config/routes.rb: </p>
  
  <pre><code>Blog::Application.routes.draw 
    do resources :posts match "show_all" =&gt; "Posts#show_all" 
  end
  </code></pre>
  
  <p>Output of <code>rake routes</code></p>
  
  <pre><code>show_all        /show_all(.:format)             {:action=&gt;"show_all", :controller=&gt;"Posts"}
  </code></pre>