// We render this view if there was a validation error submitting the foundation reveal modal. // Replace the original content so that error messages are displayed. var modal = $("#study-participant-modal") $(modal).html("<%= j(render 'form', participant: participant) %>");