how to pass an array through url_for.

hi , every one.

i just want to generate url from url_for method

like this:


i except it's generate


but it's generated :


any idiea ?

thank you .

IS this the RAILS’s bug?

The way rails does it is the correct way. It will be reconstructed as
an array in the params hash.

Looks like it. However, did you try in edge rails ? url_for()
generates expected link in edge for me. That'd be
"users?names[]=aotianlong&names[]=ayowaya" in your case,