6 lines
182 B
Plaintext
6 lines
182 B
Plaintext
<% if @error %>
|
|
alert("<%= escape_javascript(@error.to_s) %>");
|
|
<% else %>
|
|
$("#score-for-comment-<%= @comment.id %>").html("<%= pluralize @comment.score, 'point' %>");
|
|
<% end %>
|