What would be the best way to combine two fields in a form into a single model field in Rails 4? My form has separate date and time picker text inputs, and I'd like those to be combined on the fly into a single timestamp field.
<%= f.text_field :published_at, class: 'datepicker' %>
<%= f.text_field :published_at, class: 'timepicker' %>