Forum: Ruby on Rails datetime - allow changes to time part but not date part

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
58ee757c0eb0ec0414ce415c7b21163b?d=identicon&s=25 Harv (Guest)
on 2007-01-08 01:39
I have a parent model with 'once-a-day' objects and a child model with
'many times per day' objects. The child has a datetime field where the
date part should be obtained from the parent and the time part entered
by a user. The date part should not be modifiable by the user.

I thought I could default the datetime field on the child with the date
from the parent then use datetime_select or
select_[year|month|day|hour|minute] to permit editing of the time parts
while disabling the date parts. I've tried many variations without

Any suggestions? Thanks
This topic is locked and can not be replied to.