SUSE/hackweek

View on GitHub
app/views/projects/_like_toggle.js.erb

Summary

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