title: Ruby on Rails index routing
body: <p>I have created an index of an object, request. Request has a address and a body. I set the index to show the address as a link, and I am trying to get the link to go to the show page of that certain object, however it routes me to the create object page.</p>
  
  <p>Routes.rb:</p>
  
  <pre><code>Rails.application.routes.draw do
  
    get 'quote/new'
  
    get 'quote/create'
  
    devise_for :admins
  
    get '/login',   to: 'sessions#new'
    devise_for :users
    root 'static_pages#home'
    resources :users do
      collection do
        get :signup
        get :login
      post :login
      get :logout
    end
  end
  
    get '/about',   to: 'static_pages#about'
    get '/contact', to: 'static_pages#contact'
    get '/signup',  to: 'users#new'
    get '/request', to: 'requests#new'
  
    get '/account', to: 'users#show'
    get '/show',  to: 'request#show'
  
    resources :users
    resources :requests
  
    post '/login',  to: 'users#show'
    delete '/logout',  to: 'sessions#destroy'
  
  end
  </code></pre>
  
  <p>Index html page:</p>
  
  <pre><code>&lt;h1&gt;All Requests&lt;/h1&gt;
  
  &lt;ul&gt;
    &lt;% @requests.each do |request| %&gt;
      &lt;li&gt;
        &lt;%= link_to request.address, request %&gt;
      &lt;/li&gt;
    &lt;% end %&gt;
  &lt;/ul&gt;
  </code></pre>