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
Post a Comment