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)%>