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:
<%= link_to "Details", :controller => "pages", :action => "view_details",
:location => v["coordinates"]%>
In my routes.rb file, I have:
get 'pages/view_details/:location', to: 'pages#view_details'
I am getting the following error: No route matches [GET] "/pages/view_details/latitude=37.3505570824247&longitude=-121.922104884669"
When I rake routes, I see this (with no prefix):

How can I fix this?