SUSE/hackweek

View on GitHub
app/views/announcements/_announcement_toggle.js.erb

Summary

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