I have a model which has start_at
and end_at
attributes. In the form for the end-user, I am displaying start_at
using the standard datetime_select
, but I'd rather not have a second datetime select presented to the user. I'm hoping I can create two fields that represent a duration; one for hours, the other for minutes. My question is, how in my view do I use form helpers to automatically fill in the fields when editing an existing entry. Furthermore, how would I connect that to the model and subsequently save the recording using the real attribute, end_at
?
Thanks in advance for any advice you can give!