show users per question

This commit is contained in:
Stella Rouzi 2015-04-22 18:55:51 +03:00
parent 9963c1550f
commit 3b8b86eb85
4 changed files with 32 additions and 0 deletions

View file

@ -10,6 +10,10 @@ module Admin
@new_question = @conference.questions.new
end
def show
@registrations = @conference.registrations.joins(:qanswers).uniq
end
def new
@question = Question.new(conference_id: @conference.id)
authorize! :create, @question