class CouncillorsController < ApplicationController

	def index
		@councillors = Councillor.all.order(:last_name).includes(:ward)
	end

	def show	
		@councillor = Councillor.find params[:id]
	end


end

class CouncillorsController < ApplicationController

	def index
		@councillors = Councillor.all.order(:last_name).includes(:ward)
	end

	def show	
		@councillor = Councillor.find params[:id]
		@votes = @councillor.councillor_vote.includes(:motion) 
	end


end

Add votes variable to get councillor votes
Add votes variable to get councillor votes
