Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

params didn't have all the data from multiple select list in the view

#1201

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.

Reported by Shawn · October 11th, 2008 @ 03:37 AM

State: invalid
Milestone: 2.x
Assigned to: nobody
Importance: none

Activity

  1. Shawn
  2. Shawn
  3. Lachlan Sylvester
    Lachlan Sylvester

    To have an array in params you need to have the name end in [].

    ie. <select name="aaa[]">

    October 14th, 2008 @ 11:36 PM

  4. Shawn
    Shawn

    That works great!, Thanks. I knew rails is smarter than that....

    Do I need to close this ticket somehow?

    October 15th, 2008 @ 05:11 PM

  5. Frederick Cheung
    Frederick Cheung
    • State changed from new to invalid

    December 21st, 2008 @ 11:47 AM