diff --git a/app/controllers/main_controller.rb b/app/controllers/main_controller.rb --- a/app/controllers/main_controller.rb +++ b/app/controllers/main_controller.rb @@ -102,6 +102,10 @@ end end + def error + @user = User.find(session[:user_id]) + end + protected def prepare_list_information @problems = Problem.find_available_problems