From 66c9de94a8234b5cdd84d6fc08732a16e7c72b37 Mon Sep 17 00:00:00 2001 From: sw <939547590@qq.com> Date: Wed, 4 Jun 2014 09:11:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=96=B0=E5=A2=9E=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A=E5=90=8E=E9=A1=B5=E9=9D=A2=E4=B8=8D=E4=BC=9A=E8=B7=B3?= =?UTF-8?q?=E8=BD=AC=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/homework_attach_controller.rb | 4 ++++ app/views/homework_attach/new.html.erb | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/controllers/homework_attach_controller.rb b/app/controllers/homework_attach_controller.rb index a5a92c8f3..b2d07aeea 100644 --- a/app/controllers/homework_attach_controller.rb +++ b/app/controllers/homework_attach_controller.rb @@ -44,6 +44,8 @@ class HomeworkAttachController < ApplicationController format.html { redirect_to project_for_bid_path @homework.bid } format.json { head :no_content } end + else + end #end end @@ -74,6 +76,7 @@ class HomeworkAttachController < ApplicationController format.html { redirect_to project_for_bid_path @homework.bid } format.json { head :no_content } end + else end end @@ -84,6 +87,7 @@ class HomeworkAttachController < ApplicationController format.html { redirect_to project_for_bid_path @homework.bid } format.json { head :no_content } end + else end end diff --git a/app/views/homework_attach/new.html.erb b/app/views/homework_attach/new.html.erb index c1851343b..966176a1d 100644 --- a/app/views/homework_attach/new.html.erb +++ b/app/views/homework_attach/new.html.erb @@ -1,6 +1,6 @@ -
<%=raw l(:label_new_homework)%>
+<%=h l(:label_new_homework)%>