title: Ruby on Rails - routing error, goes to "show" instead of "index"
body: <p>I have a basic homepage with a link that I would like to go to businesses/index.html.erb</p>
  
  <pre><code>&lt;%= link_to("Go to businesses index page", {:controller=&gt;"businesses", :action =&gt;"index"}) %&gt;
  </code></pre>
  
  <p>When I click on this link I get a routing error:</p>
  
  <pre><code>No route matches {:action=&gt;"show", :controller=&gt;"businesses"}
  </code></pre>
  
  <p>My routes.rb file looks like:</p>
  
  <pre><code>RailsProject::Application.routes.draw do
   get "welcome/index"
  
   root :to =&gt; 'welcome#index'
  
   get "businesses/index"
   resources :businesses
  end
  </code></pre>
  
  <p>and <code>rake routes</code> gets me:</p>
  
  <pre><code>   welcome_index GET    /welcome/index(.:format)       welcome#index
        businesses GET    /businesses(.:format)          businesses#index
                   POST   /businesses(.:format)          businesses#create
      new_business GET    /businesses/new(.:format)      businesses#new
     edit_business GET    /businesses/:id/edit(.:format) businesses#edit
          business GET    /businesses/:id(.:format)      businesses#show
                   PUT    /businesses/:id(.:format)      businesses#update
                   DELETE /businesses/:id(.:format)      businesses#destroy
              root        /                              welcome#index
  businesses_index GET    /businesses/index(.:format)    businesses#index
  </code></pre>
  
  <p>I am using rails version 3.2</p>