I'm working on a datepicker and a timepicker. The datepicker is the
jQuery datepicker. The timepicker displays a drop down menu with
I want to have two different fields: the datepicker and timepicker. Then
mix up the two (probably in the controller) and come up with the whole
datetime data to be inserted into the database.
The problem is, Rails doesn't seem to let me create two different
<%= f.label :start_date %><br />
<%= f.text_field :start_time %>
I get this error:
Model Appointment does not respond to start_time
And I understand, start_time doesn't exist in the Model. So how can I
create two fields in the form that don't exist in the model (kinda like
virtual columns) , then combine their two values and then insert the
result into the database?
Some of you may ask why don't I just use the jQuery TimePicker, but I
don't like the time slider and I need to display only available times,
so the jQuery TimePicker is out.