This commit is contained in:
r888888888
2013-06-21 17:29:48 -07:00
parent ef2faff245
commit f6510703e0
2 changed files with 35 additions and 9 deletions

View File

@@ -0,0 +1,5 @@
<% if @comment_vote.errors.any? %>
{"success": false, "errors": <%= @comment_vote.errors.full_messages.to_json.html_safe %>}
<% else %>
{"success": true}
<% end %>