Rails routing send string with dots and int -


i'm new rails...

i try send such string :search param: "55.675155, 21.833466" , 2 :id param... bad...

i no route matches [get] "/exchanger_lists/get_exchangers_via_coordinates/.....

my route file:

  match 'exchanger_lists/get_exchangers_via_coordinates/:search,:id' => 'exchanger_lists#get_exchangers_via_coordinates' 

but how url must in browser???

how in rails way? read doc's, not clear on 100% (

just how configure route , how call browser?

match 'exchanger_lists/get_exchangers_via_coordinates/:search,:id' => 'exchanger_lists#get_exchangers_via_coordinates',  constraints: { search: /[^\/]+/ } 

from here


Comments

Popular posts from this blog

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -