David Röthlisberger
Not a member
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 created the ticket at 5:31 PMIf I do
fields_for :post, @post, :index => 1 do |f| f.collection_select(:author_name, @posts, :author_name, :author_name) endI get
<select name="post[...
Wednesday, May 07 2008
-
David Röthlisberger commented at 9:07 PMExactly. 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 commented at 10:01 PMPatch with a unit test demonstrating this nested array behaviour.
-
David Röthlisberger created the ticket at 9:56 PMSay 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...