This project is archived and is in readonly mode.
params didn't have all the data from multiple select list in the view
Reported by Shawn | October 11th, 2008 @ 03:37 AM | in 2.x
Is this a bug?
I have a multiple selection list in view, when I select more than one items and post the form, only the first item are saved in params.
I have attached a few screenshot to describe the problem alone with some codesnip.
Comments and changes to this ticket
-
Shawn October 11th, 2008 @ 03:37 AM
- no changes were found...
-
Shawn October 11th, 2008 @ 03:38 AM
- no changes were found...
-
Lachlan Sylvester October 14th, 2008 @ 11:36 PM
To have an array in params you need to have the name end in [].
ie.
<select name="aaa[]">
-
Shawn October 15th, 2008 @ 05:11 PM
That works great!, Thanks. I knew rails is smarter than that....
Do I need to close this ticket somehow?
-
Frederick Cheung December 21st, 2008 @ 11:47 AM
- State changed from new to invalid
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>