```ruby
module Broggle
  class BrogglesController < ApplicationController
    def index
      @current_branch = broggle.current_branch_name
    end

    def create
    end

    def show
    end

    def edit
    end

    def update
    end

    def destroy
    end

    def deploy
      broggle.deploy(params['select-base'])
      redirect_to action: "index"
    end

    def search
      json = broggle.branches_flex_search(params[:query], 10)
      render json: json
    end

    def broggle
      @broggle ||= Broggle.new
    end
  end
end
```

Change param names for searching
user
```ruby
module Broggle
  class BrogglesController < ApplicationController
    def index
      @current_branch = broggle.current_branch_name
    end

    def create
    end

    def show
    end

    def edit
    end

    def update
    end

    def destroy
    end

    def deploy
      broggle.deploy(params[:branches])
      redirect_to action: "index"
    end

    def search
      json = broggle.branches_flex_search(params[:query], 10)
      render json: json
    end

    def broggle
      @broggle ||= Broggle.new
    end
  end
end
```
assistant