Send a list to the controller

Hi all,
I’m new on rails, I need to send a list from the template to the
controller but if i define a list of checkbox wiith the some name the
result is only 1 in the param into the controller … how can i do?

many thanks
MuCcA

On Jun 5, 8:44 am, mucca [email protected] wrote:

Hi all,
I’m new on rails, I need to send a list from the template to the
controller but if i define a list of checkbox wiith the some name the
result is only 1 in the param into the controller … how can i do?

The key with array parameters is that the name of the input should end
with []. If you created a list of checkboxes all with name[], and with
values 1,2,3,… then your rails app should get an array parameter
called name

Fred

Ok i’l try…
many thanks

Frederick C. ha scritto: