fixed bug about co-author-relation

This commit is contained in:
Rueshyna committed 2012-12-06 15:20:06 +08:00
1 parent d4c6fc66d5
commit 54de86eeb4
4 files changed
+1033 -12

No files matched your search

@@ -25,7 +25,7 @@ class Desktop::CoAuthorRelationsController < ApplicationController
if @co_author_relation.save
newv = render_to_string partial: "show_form", object: @co_author_relations
render json: {success: true, msg: "New Relation successfully saved!", newvalue: newvm}.to_json
render json: {success: true, msg: "New Relation successfully saved!", newvalue: newv}.to_json
else
error_msg = @co_author_relation.errors.full_messages.join("<br />")
render json: {success: false, msg: error_msg}.to_json