jumping menus updated..
This commit is contained in:
1 parent
6426fb74d9
commit
ee830f148e
2 files changed
+6
-5
No files matched your search
@@ -54,14 +54,15 @@ class Desktop::JournalPagesController < ApplicationController
|
||||
def update
|
||||
params[:writing_journal][:update_user_id] = current_user.id
|
||||
@writing_journal= WritingJournal.find(params[:id])
|
||||
respond_to do |format|
|
||||
# @writing_journal.update_user_id = current_user.id
|
||||
|
||||
if @writing_journal.update_attributes(params[:writing_journal])
|
||||
render json: {success: true, msg: t('update.success.paper')}.to_json
|
||||
else
|
||||
error_msg = @writing_journal.errors.full_messages.join("<br />")
|
||||
render json: {success: false, msg: error_msg}.to_json
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
def check_file_type file
|
||||
|
||||
Reference in new issue
Block a user