Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <table class="table table-striped">
- <thead>
- <tr>
- <th>Start time</th>
- <th>Patient</th>
- <th>Description</th>
- <th></th>
- </tr>
- </thead>
- <% @appointments.each do |t| %>
- <tr>
- <th><%= t.datetime %> </th>
- <th><%= link_to t.patient, patient_path(t.patient_id) %> </th>
- <th><%= t.description %> </th>
- <th><%= link_to 'Edit', edit_appointment_path(t) %> </th>
- <th><%= link_to 'Destroy', patient_path(t),
- method: :delete,
- data: { confirm: 'Are you sure?' } %> </th>
- </tr>
- <% end %>
- </table>
- <p><%= link_to 'New Appointment', new_appointment_path %></p>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement