assigns officers to booths

This commit is contained in:
rgarcia
2016-09-28 18:39:01 +02:00
parent 6387d28157
commit 527b734e0e
10 changed files with 185 additions and 27 deletions

View File

@@ -8,6 +8,7 @@ class Admin::Poll::BoothsController < Admin::BaseController
end
def show
@officers = Poll::Officer.all
end
def new
@@ -35,7 +36,7 @@ class Admin::Poll::BoothsController < Admin::BaseController
private
def booth_params
params.require(:poll_booth).permit(:name, :location)
params.require(:poll_booth).permit(:name, :location, officer_ids: [])
end
def load_polls