Hey Alex!
I haven't yet. I've got a little busy as of late. Here's the thing: this
is already supported, it just isn't revealed.
What I'd suggest doing in the mean time (I _will_ write the patch this
weekend for you), is using a text field and leveraging the Chronic gem to
convert plain-English time phrases into Date or Time objects.
James H.
On Dec 14, 2007 7:11 AM, Alexander Simonov <
[EMAIL PROTECTED]> wrote:
>
> Hello!
>
> I have same trouble :(
>
> Does you already write patch for this?
> I'm use rails 2.0.1
> Thank you!
>
>
> James Herdman wrote:
> > Okay, Googlers. I have this figured out. I don't have a good
> > solution, but I have a work-around until I can write a patch.
> >
> > You'll notice in Ryan Bate's method that he has you use an ":index =>
> > nil" option on text_fields for your fields_for. This option is _not_
> > recognized by the select helper. Until I can write a patch, you need
> > to use the select_tag helper as follows:
> >
> > select_tag('project[task_attributes][][some_selectable_attribute]',
> > options_for_select(some_options, selected_option)
> >
> > It's ugly, it's fragile, and it's not DRY. However, it'll keep you
> > moving until I can get a patch written this weekend.
> >
> > James
>
> --
> Posted via http://www.ruby-forum.com/.
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---