修改删除文件后跳转错误问题

This commit is contained in:
z9hang 2014-05-20 11:36:01 +08:00
parent c141501085
commit b3489d3e68
1 changed files with 6 additions and 1 deletions

View File

@ -124,7 +124,12 @@ class AttachmentsController < ApplicationController
end end
respond_to do |format| respond_to do |format|
format.html { redirect_to_referer_or forum_memo_path(@attachment.container.forum,@attachment.container) } if @project.nil?
format.html { redirect_to_referer_or forum_memo_path(@attachment.container.forum,@attachment.container) }
else
format.html { redirect_to_referer_or project_path(@project)}
end
format.js format.js
end end
end end