I am submitting multiple records in a single POST. I am trying to use date_select as follows: <%= date_select(''event_date[]'', :occurs_at) %> Usually, the [] in the object name instructs the tag to put the object ID in the generated HTML. Works fine for all the other tags but date_select seems to ignore it. I''m hoping that I am doing something wrong and date_select doesn''t have a bug... Anyone know? Thanks, HH --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
I''ll respond to my own post. This is indeed a bug (or whatever). Anyway, it''s fixed: http://dev.rubyonrails.org/ticket/2655> From: HH <lists-HAWAbpnI61OZ1JSuHaJ1sQC/G2K4zDHf@public.gmane.org> > Reply-To: <rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > Date: Thu, 28 Sep 2006 15:38:38 -0700 > To: Google Rails <rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > Conversation: date_select Doesn''t Support Multiple Records? No []? > Subject: [Rails] date_select Doesn''t Support Multiple Records? No []? > > > I am submitting multiple records in a single POST. > > I am trying to use date_select as follows: > > <%= date_select(''event_date[]'', :occurs_at) %> > > Usually, the [] in the object name instructs the tag to put the object ID in > the generated HTML. Works fine for all the other tags but date_select seems > to ignore it. > > I''m hoping that I am doing something wrong and date_select doesn''t have a > bug... > > Anyone know? > > Thanks, > HH > > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Michael Kovacs
2006-Sep-29 00:35 UTC
Re: date_select Doesn''t Support Multiple Records? No []?
HH, I wasn''t able to find it from the ticket you pasted, nor the ticket referred to by that ticket, but did you see what version of rails this was fixed in? From what I can clean from the comment stream interspersed with spam comments this has yet to be merged into trunk. I ran into this problem back in January, fixed it, and posted this easy fix: http://javathehutt.blogspot.com/2006/01/rails-realities-part-3-first-rails.html -Michael On 9/28/06, HH <lists-HAWAbpnI61OZ1JSuHaJ1sQC/G2K4zDHf@public.gmane.org> wrote:> > > I''ll respond to my own post. > > This is indeed a bug (or whatever). > > Anyway, it''s fixed: > > http://dev.rubyonrails.org/ticket/2655 > > > > From: HH <lists-HAWAbpnI61OZ1JSuHaJ1sQC/G2K4zDHf@public.gmane.org> > > Reply-To: <rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > > Date: Thu, 28 Sep 2006 15:38:38 -0700 > > To: Google Rails <rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > > Conversation: date_select Doesn''t Support Multiple Records? No []? > > Subject: [Rails] date_select Doesn''t Support Multiple Records? No []? > > > > > > I am submitting multiple records in a single POST. > > > > I am trying to use date_select as follows: > > > > <%= date_select(''event_date[]'', :occurs_at) %> > > > > Usually, the [] in the object name instructs the tag to put the object > ID in > > the generated HTML. Works fine for all the other tags but date_select > seems > > to ignore it. > > > > I''m hoping that I am doing something wrong and date_select doesn''t have > a > > bug... > > > > Anyone know? > > > > Thanks, > > HH > > > > > > > > > > > > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
You¹re right, it hasn¹t been applied yet. I was incorrect jumped the gun a bit. From: Michael Kovacs <kovacs-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> Reply-To: <rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> Date: Thu, 28 Sep 2006 17:35:47 -0700 To: <rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> Subject: [Rails] Re: date_select Doesn''t Support Multiple Records? No []? HH, I wasn''t able to find it from the ticket you pasted, nor the ticket referred to by that ticket, but did you see what version of rails this was fixed in? Fromwhat I can clean from the comment stream interspersed with spam comments this has yet to be merged into trunk. I ran into this problem back in January, fixed it, and posted this easy fix: http://javathehutt.blogspot.com/2006/01/rails-realities-part-3-first-rails.h tml <http://javathehutt.blogspot.com/2006/01/rails-realities-part-3-first-rails. html> -Michael On 9/28/06, HH <lists-HAWAbpnI61OZ1JSuHaJ1sQC/G2K4zDHf@public.gmane.org> wrote:> > I''ll respond to my own post. > > This is indeed a bug (or whatever). > > Anyway, it''s fixed: > > http://dev.rubyonrails.org/ticket/2655 > > >> > From: HH < lists-HAWAbpnI61OZ1JSuHaJ1sQC/G2K4zDHf@public.gmane.org> >> > Reply-To: <rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> >> > Date: Thu, 28 Sep 2006 15:38:38 -0700 >> > To: Google Rails <rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> >> > Conversation: date_select Doesn''t Support Multiple Records? No []? >> > Subject: [Rails] date_select Doesn''t Support Multiple Records? No []? >> > >> > >> > I am submitting multiple records in a single POST. >> > >> > I am trying to use date_select as follows: >> > >> > <%= date_select(''event_date[]'', :occurs_at) %> >> > >> > Usually, the [] in the object name instructs the tag to put the object ID >> in >> > the generated HTML. Works fine for all the other tags but date_select seems >> > to ignore it. >> > >> > I''m hoping that I am doing something wrong and date_select doesn''t have a >> > bug... >> > >> > Anyone know? >> > >> > Thanks, >> > HH >> > >> > >> > >>> > > > > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---