#32 √ invalid
Dewey Bushaw

[PATCH] date_select is not working with auto_prefix (object[])

Reported by Dewey Bushaw | August 26th, 2008 @ 12:31 AM

I am copying over this issue from Rails Trac (http://dev.rubyonrails.org/ticke...>

When I do the following, I get what I expect for the text_field portion, but not for the date_select portion.

<%# fields_for "child[]", Interest.new do |f|%> <%= f.text_field :name %> <%= f.date_select :birth %> <%# end %>

... ... ...

The name for the select fields should be child[][birth(i)] instead of child[birth(i)] causing this error message:

Conflicting types for parameter containers. Expected an instance of Hash but found an instance of Array. This can be caused by colliding Array and Hash parameters like qs[]=value&qs[key]=value.

To implement patch, freeze rails then find file in vendor/rails, restart app.

Comments and changes to this ticket

Please Login or create a free account to add a new comment.

You can update this ticket by sending an email to from your email client. (help)

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

People watching this ticket

Attachments