$("#announcement-<%= @announcement.id %>").toggle();

$('input[name="authenticity_token"]').val('<%= form_authenticity_token %>');
$('meta[name="csrf-token"]').attr('content','<%= form_authenticity_token %>');
$("#announcement-<%= @announcement.id %>").toggle();

Refresh csrf token when enrolling in Announcement
Refresh csrf token when enrolling in Announcement
