From 2c7ef034cb65ca52efc817c96c187a8ef6dbb340 Mon Sep 17 00:00:00 2001 From: lizanle <491823689@qq.com> Date: Thu, 31 Dec 2015 12:27:31 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B5=84=E6=BA=90=E5=BA=93=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/attachments_controller.rb | 2 +- app/views/files/_course_list.html.erb | 24 ++++++++++--------- .../users/_resource_share_for_orgs.html.erb | 2 +- ..._resource_share_for_project_popup.html.erb | 2 +- .../users/_resource_share_popup.html.erb | 2 +- 5 files changed, 17 insertions(+), 15 deletions(-) diff --git a/app/controllers/attachments_controller.rb b/app/controllers/attachments_controller.rb index 86d4d3b52..36093f33b 100644 --- a/app/controllers/attachments_controller.rb +++ b/app/controllers/attachments_controller.rb @@ -202,7 +202,7 @@ class AttachmentsController < ApplicationController Attachment.transaction do @old_attachment = Attachment.find params[:old_attachment_id] #取出当前上传的文件 - @attachment = Attachment.find(params[:attachments]['1'][:attachment_id]) + @attachment = Attachment.find(params[:attachments ].first[1][:attachment_id]) #将需要修改的记录保存到历史记录 @history = AttachmentHistory.new @history.attributes = @old_attachment.attributes.dup.except("id") diff --git a/app/views/files/_course_list.html.erb b/app/views/files/_course_list.html.erb index 310313c59..08e23fb19 100644 --- a/app/views/files/_course_list.html.erb +++ b/app/views/files/_course_list.html.erb @@ -37,11 +37,12 @@ diff --git a/app/views/users/_resource_share_for_orgs.html.erb b/app/views/users/_resource_share_for_orgs.html.erb index 08405a347..9da439c8e 100644 --- a/app/views/users/_resource_share_for_orgs.html.erb +++ b/app/views/users/_resource_share_for_orgs.html.erb @@ -1,4 +1,4 @@ -
+
发送到
diff --git a/app/views/users/_resource_share_popup.html.erb b/app/views/users/_resource_share_popup.html.erb index b1f6270b0..a12a02683 100644 --- a/app/views/users/_resource_share_popup.html.erb +++ b/app/views/users/_resource_share_popup.html.erb @@ -2,7 +2,7 @@
-
将资源发送至
+
发送到