Update available_spaces_controller.rb

changed query