I am using the active_admin gem and, since it requires the meta_search gem, I want to provide search functionality outside of the admin pages. I am getting an undefined method error when I provide a string to the Model.search method. According to the meta_search docs, this is all I need to do and all of the active_admin searching works flawlessly. Am I missing something?
Gemfile:
gem 'activeadmin'
gem "meta_search", '>= 1.1.0.pre'
Controller:
@eventsearch = Event.search(params[:q])
Error message ( example.com/?q=foo ):
undefined method `stringify_keys!' for "foo":String