On 7/17/05, Meryn Stol <meryn-dIG1xP2mAcFIf6P1QZMOBw@public.gmane.org>
wrote:> Hi,
> Is it possible to pass an array or maps via the url or postdata?
>
> In PHP, I''m accustomed to doing this:
>
> <select multiple name="options[]">
> to pass an array, and
>
> <input type="text" name="coords[x]">
> <input type="text" name="coords[y]">
> <input type="text" name="coords[z]">
> to create a map.
>
> This kind of syntax can be combined to create multidimensional
> structures.
>
> Does Ruby allow this? Does it require any special configuration?
This works as well in Rails as it does in PHP.
Take a look at the "Parameters" section in
http://api.rubyonrails.com/classes/ActionController/Base.html for more
information.
- Rowan
PS: This response is so late, that I''m sure you already stumbled upon
an answer, but un unanswered question just doesn''t look as good in my
Gmail archive.
--
Morality is usually taught by the immoral.