这是我的视图代码:
- @categories.each do |c|
%li.menu-drop
= check_box_tag "categories[]", c.id
.tipo-infor
= c.title
当我提交此表单时,它会生成此 url:
http://0.0.0.0:3000/buscar-projetos-com?utf8=%E2%9C%93&categories%5B%5D=3&categories%5B%5D=4&commit=Pesquisar
我的问题是如何更好地显示这个网址,就像:
http://0.0.0.0:3000/buscar-projetos-com?categories=2,3,4,5