```ruby
class SearchController < ApplicationController

  def index
    @games = Search.new(Game, params[:kw], current_user).results
  end

end```

Handle the search request even without the kw param
user
```ruby
class SearchController < ApplicationController

  def index
    @games = Search.new(Game, params.fetch(:kw, ''), current_user).results
  end

end
```
assistant