$("#medications").html("<%= escape_javascript(
  render "table", treatable: @treatable, medications: @medications
) %>");

$("#medications").html("<%= escape_javascript(
  render "table", patient: @patient, treatable: @treatable, medications: @medications
) %>");

Fix canceling a medication form
Fix canceling a medication form