Hello,
Currently, my issue is that I cannot see the values I have selected in
my Appointment form. This is the code in my appointments/form.html.erb.
<%= select “obj”, “test”, timeslots.map.with_index{ |name, index|
[name,
index] } %>
<div class="field">
<%= f.label :diagnostic_code %><br>
<%= f.collection_select :diagnostic_code_id, DiagnosticCode.all,
:id, :diagnostic_code_id %>
<%= radio_button_tag(:appt_completion, "yes") %> <%= label_tag(:appt_completion_yes, "Appointment Completed") %> <%= radio_button_tag(:appt_completion, "no") %> <%= label_tag(:appt_completion_no, "Appointment Not Completed") %>
I have this in the appointments/show.html.erb:
Appointment Time: <%= @appointment.appointment_time %>
Diagnostic Code: <%= @appointment.diagnostic_code_id %>
Appointment Completion Status: <%= @appointment.appt_completion %>
I think my problem may have resulted from the manner I added and
modified columns using multiple migrations to the Appointment table.
Attached is my current design. My design is not concrete, I am looking
for suggestions and guidance so I really appreciate any assistance.
My main goal though is to get this show operation working.