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?

2007/9/7, aotianlong [email protected]:

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,

On 9/7/07, ao tianlong [email protected] wrote:

any idiea ?

thank you .


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs