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

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -