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.

David Röthlisberger's latest activity

Thursday, May 08 2008
145 collection_select doesn't honour :index option to fields_for was created in Ruby on Rails
  • David Röthlisberger
    David Röthlisberger created the ticket at 5:31 PM

    If I do

    fields_for :post, @post, :index => 1 do |f|
      f.collection_select(:author_name, @posts, :author_name, :author_name)
    end
    

    I get

    <select name="post[...
Wednesday, May 07 2008
127 Params hash is incorrect for nested arrays was updated in Ruby on Rails
  • David Röthlisberger
    David Röthlisberger commented at 9:07 PM

    Exactly. After all, it seems like it 'remembers' previous keys when there no nested arrays:

    <input name="telephone[][area_code]" ... />
    <input name="telephon...
Tuesday, May 06 2008
127 Params hash is incorrect for nested arrays was updated in Ruby on Rails
  • David Röthlisberger
    David Röthlisberger commented at 10:01 PM

    Patch with a unit test demonstrating this nested array behaviour.

  • David Röthlisberger
    David Röthlisberger created the ticket at 9:56 PM

    Say you have a form with fields for creating several contacts; each contact has fields for several phone numbers. The html might look like this:

    <!-- first co...