This commit is contained in:
Toks
2013-07-08 21:58:32 -04:00
parent ef9067033c
commit 02c8df5beb
2 changed files with 7 additions and 1 deletions

View File

@@ -1,5 +1,5 @@
class CommentVotesController < ApplicationController
respond_to :js, :json
respond_to :js, :json, :xml
before_filter :member_only
def create

View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<% if @comment_vote.errors.any? %>
<response success="false"><%= @comment_vote.errors.full_messages.to_json.html_safe %></response>
<% else %>
<response success="true"/>
<% end %>