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

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 Cheung ha scritto: