title: Correct Routing for :has_many :through
body: <p>Ok so.. I have a site with several dropdown menus in my navbar. It goes a little like this:</p>
  
  <p>Gran Turismo (First title drops down to: )</p>
  
  <ul>
  <li>PS4</li>
  <li>PS3 etc.</li>
  </ul>
  
  <p>Forza (Second title drops down to: )</p>
  
  <ul>
  <li>PS4</li>
  <li>PS3 etc..</li>
  </ul>
  
  <blockquote>
    <p>My goal is when I click on one of the drop downs it will display a Show page using the routes:</p>
  </blockquote>
  
  <pre><code>www.mysite.com/forza/ps4
  </code></pre>
  
  <p>Everyone tells me that I should use a <code>has_many :through</code> to a third model which I have called Platform.</p>
  
  <p>My models are therefore this:</p>
  
  <pre class="lang-html prettyprint-override"><code>class Game &lt; ApplicationRecord
    has_many :platforms
    has_many :consoles, through: :platforms
  end
  
  class Console &lt; ApplicationRecord
    has_many :platforms
    has_many :games, through: :platforms
  end
  
  class Platform &lt; ApplicationRecord
    belongs_to :game
    belongs_to :console
  end
  </code></pre>
  
  
  
  <p>And my routes are this:</p>
  
  <pre><code>  resources :platforms, only: [:show] do
      resources :games do
        resources :consoles
      end
    end
  </code></pre>
  
  <p>Ideally, on the final show.html.erb which im guessing would be the platforms show, I would like to display the product I am selling specifically for the game Forza on the platform PS4 which I chose my selecting the dropdown menu of my choosing..</p>
  
  <p>However my routes are coming up like this instead:</p>
  
  <pre><code>/platforms/:platform_id/games/:game_id/consoles/:id(.:format)   
  </code></pre>
  
  <p>Any ideas where I'm going wrong? And if there's a much easier way around this?</p>
  
  <p>Many thanks!</p>
  
  <p><strong>Update:</strong></p>
  
  <p>"Platform" could be slightly confusing. Perhaps "MarketPlace" would be better suited. Although reading it through now, maybe I shouldn't have a third model and just end it at Console. </p>
  
  <p>I just want the final show page to be slightly different if a different Game is selected.</p>