diff --git a/app/controllers/contests_controller.rb b/app/controllers/contests_controller.rb index 7e27d117..aca56342 100644 --- a/app/controllers/contests_controller.rb +++ b/app/controllers/contests_controller.rb @@ -562,9 +562,9 @@ class ContestsController < ApplicationController @contest = Contest.find(params[:id]) @user = @contest.author end - rescue + rescue render_404 - end + end end diff --git a/app/views/contests/show_attendingcontest.html.erb b/app/views/contests/show_attendingcontest.html.erb index 87e98596..3c6146dd 100644 --- a/app/views/contests/show_attendingcontest.html.erb +++ b/app/views/contests/show_attendingcontest.html.erb @@ -53,6 +53,11 @@ function cancel() { $("#put-bid-form").hide(); } + + function cancel() { + $("#put-project-form").hide(); + } + @@ -67,9 +72,9 @@
步骤1: - <%= link_to '新建参赛作品', new_softapplication_path(:target=>'_blank'), :target=>'_blank' %> + <%#= link_to '新建参赛作品', new_softapplication_path(:target=>'_blank'), :target=>'_blank' %> <%= link_to '新建参赛作品', "javascript:void(0);", onclick: "$('#put-project-form').toggle();" %> - (先点击“新建参赛作品”, 然后返回本页继续步骤2即可。) + (先点击“新建参赛作品”,然后刷新页面,再继续步骤2。)
步骤2: @@ -79,7 +84,7 @@