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