mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
Ask users about content on their dashboard
This commit is contained in:
parent
246e9707a0
commit
bfef0ca8f2
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user