title: Rails route to get a resource using query string
body: <p>I would like to have a custom route querystring based, to access a specified resource. For example:</p>
  
  <p><em>/opportunities/rent/san-miguel-de-tucuman?id=45045</em></p>
  
  <p>That route should map to the action OpportunitiesController#show, with the resource id 45045.</p>
  
  <p>Thanks in advance!!!</p>
  
  <p><strong>Updated</strong></p>
  
  <p>This are my current routes:</p>
  
  <ul>
  <li>get 'oportunidades/alquiler/san-miguel-de-tucuman/:id', to: "opportunities#show"</li>
  <li>get 'oportunidades/alquiler/san-miguel-de-tucuman', to: "opportunities#index"</li>
  </ul>
  
  <p><strong>So, if I navigate to the /oportunidades/alquiler/san-miguel-de-tucuman?id=123456 route, it go to the Opportunities#index action.</strong></p>
  
  <p>P/S: sorry, I forget to mention that I have a similar route for the index action.</p>