title: Routing with Parameters in Ruby on Rails
body: <p>I'm new to rails, and I'm struggling with handling the routing correctly. 
  Right now I have a link called "details," and when the user clicks on it I would like the method "view_details" (within the pages controller) to be called with a location parameter that I'm passing in:</p>
  
  <pre><code>&lt;%= link_to "Details", :controller =&gt; "pages", :action =&gt; "view_details", 
  :location =&gt;  v["coordinates"]%&gt;
  </code></pre>
  
  <p>In my routes.rb file, I have:</p>
  
  <pre><code>get 'pages/view_details/:location', to: 'pages#view_details'
  </code></pre>
  
  <p>I am getting the following error:
      No route matches [GET] 
      "/pages/view_details/latitude=37.3505570824247&amp;longitude=-121.922104884669"</p>
  
  <p>When I rake routes, I see this (with no prefix):
  <a href="https://i.stack.imgur.com/MgYhE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MgYhE.png" alt=""></a></p>
  
  <p>How can I fix this?</p>