From bfef0ca8f2c73a5f2abe572502ac89638c032385 Mon Sep 17 00:00:00 2001 From: Andrew Brown Date: Sat, 6 Aug 2016 02:53:37 -0500 Subject: [PATCH] Ask users about content on their dashboard --- app/controllers/main_controller.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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