```ruby
class CouncillorsController < ApplicationController

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

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


end
```

Add votes variable to get councillor votes
user
```ruby
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
```
assistant