Update journal_papers_controller.rb

This commit is contained in:
chiu 2019-11-02 14:36:14 +08:00
parent b4b3d82865
commit 4038f6fad5
1 changed files with 2 additions and 1 deletions

View File

@ -153,7 +153,8 @@ class Admin::JournalPapersController < OrbitMemberController
end
def update
@member = @journal_paper.member_profile
@member = get_member(@journal_paper)
puts ['help',journal_paper_params]
@journal_paper.update_attributes(journal_paper_params)
@journal_paper.save
if params[:desktop] == "true"