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 @@