我有以下网址
window.location.href = "/test/cat=6?sub_cat=20?mode=red+2010";
直到/test/cat=6
很清楚,但是
如果我打印
params[:id] it display cat-6 thats fine because it is friendly id
如果我打印
params[:sub_cat] it displday 20?mode=red 2010 instead of 20 alone
如果我打印
params[:mode] it show nothing
我如何获得多个参数