adds poll results to admin
simple page shows results by question, white and null results
This commit is contained in:
@@ -8,7 +8,13 @@ class Admin::Poll::PollsController < Admin::BaseController
|
||||
end
|
||||
|
||||
def show
|
||||
@poll = Poll.includes(:questions, booth_assignments: [:booth, :final_recounts, :recounts], officers: [:user]).order('poll_questions.title', 'poll_booths.name', 'users.username').find(params[:id])
|
||||
@poll = Poll.includes(:questions,
|
||||
booth_assignments: [:booth,
|
||||
:final_recounts,
|
||||
:recounts],
|
||||
officers: [:user]).
|
||||
order('poll_questions.title', 'poll_booths.name', 'users.username').
|
||||
find(params[:id])
|
||||
end
|
||||
|
||||
def new
|
||||
|
||||
Reference in New Issue
Block a user