The current way I''m planning on implementing this is to have hidden
text
fields for the date components. The only database this doesn''t work
with is
SQLite since it won''t convert the datetime into a time upon save.
Haven''t
checked to see if there was a hook to convert the Time object into a time
string when saving within AR.
Do you see any issues with this implementation?
Bob Silva
http://www.railtie.net/
> -----Original Message-----
> From: rails-core-bounces@lists.rubyonrails.org [mailto:rails-core-
> bounces@lists.rubyonrails.org] On Behalf Of Michael Koziarski
> Sent: Friday, February 10, 2006 6:30 PM
> To: rails-core@lists.rubyonrails.org
> Subject: Re: [Rails-core] Date Helper Mega Patch
>
> > They all have to do with the Date Helper.
> >
> > * Support index and/or @auto_index
> > * Enable discard year
> > * time_select (alias to datetime_select with previous patch applied)
> > * Unique id''s as per w3c spec
> > * :order for datetime_select to mimic date_select :order option
> > * add :include_seconds to datetime_select, select_datetime and
> time_select
> >
> >
> > Opinions, ideas or objections so I don''t have anything in the
patch
> which is
> > likely to get it shot down.
>
> I like the idea and have no objections. However, what will
> time_select ''select''? Ruby ''times''
have a date component:
>
> irb(main):002:0> Time.now
> => Sat Feb 11 15:29:17 NZDT 2006
>
>
> > Thanks
> >
> > Bob Silva
> > http://www.railtie.net/
> >
> >
> > _______________________________________________
> > Rails-core mailing list
> > Rails-core@lists.rubyonrails.org
> > http://lists.rubyonrails.org/mailman/listinfo/rails-core
> >
>
>
> --
> Cheers
>
> Koz
> _______________________________________________
> Rails-core mailing list
> Rails-core@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails-core