module Ransack::Configuration

def search_key=(name)


<%= f.search_form_for @search, as: :log_search %>
In the view:

@search = Log.ransack(params[:log_search], search_key: :log_search)
In the controller:

`ransack`, `search` and `@search_form_for` methods in controllers & views.
Another name can be set using the `search_key` option with Ransack
cannot be used, for instance if there were two searches on one page.
Sometimes there are situations when the default search parameter name

end
config.search_key = :query
# Name the search_key `:query` instead of the default `:q`
Ransack.configure do |config|

in an initializer file like `config/initializers/ransack.rb` as follows:
The default `search_key` name is `:q`. The default key may be overridden
def search_key=(name)
  self.options[:search_key] = name
end