diff --git a/app/controllers/main_controller.rb b/app/controllers/main_controller.rb index ac525bee..de863c53 100644 --- a/app/controllers/main_controller.rb +++ b/app/controllers/main_controller.rb @@ -15,9 +15,9 @@ class MainController < ApplicationController end def dashboard - # content_type = %w(characters locations items).sample - # @content = current_user.send(content_type).sample + content_type = %w(characters locations items).sample + @content = current_user.send(content_type).sample # # TODO: get content_param_list from class controller to show question - # @question = QuestionService.question(Content.new @content.slice(*content_param_list)) + @question = QuestionService.question(Content.new @content.slice(*@content.attributes.keys)) end end