div inside form-group does not display with correct width : thanks for the help. I have the following `developers_controller` and I want to perform a query based on the `location_params`.

In the `index_update` action I create a variable `location` with the `location_params` that the user gave as input for the research, I want to perform an each loop on this variable to filter the data from `@locations = Location.all` based on the user request.

This is my private method location_params

    def location_params
		params.require(:location).permit(:country, :location, :surfspot, :barbecue, :villa, :swimmingpool, :skiresort, :singleroom )
	end

this is my `index_update` action

	def index_update
		location = Location.new(location_params)
		locations = Location.all
		location.each do |param, value|
			if value != nil
				locations = locations.where(param => value)
			end
		end
	end

I have been working pretty hard today and I can not find out how to loop the location variable.
Thanks a lot for your help and have a good day.