diff --git a/rails_root/app/controllers/home_controller.rb b/rails_root/app/controllers/home_controller.rb index 4ace803..997387c 100644 --- a/rails_root/app/controllers/home_controller.rb +++ b/rails_root/app/controllers/home_controller.rb @@ -3,11 +3,9 @@ # Controller for the home page class HomeController < ApplicationController def index - # @survey_responses = SurveyResponse.where(profile_id: 2) # FIXME: use code below when other part works return if session[:userinfo].nil? @survey_profile = SurveyProfile.find_by(user_id: session[:userinfo]['sub']) - puts session[:userinfo]['sub'].to_json return if @survey_profile.nil? @survey_responses = SurveyResponse.where(profile_id: @survey_profile.id)