我正在使用Solidus,我想通过elasticsearch实现一个更好的搜索,我使用solidus_searchkick来完成这个任务。但我得到了以下错误:
undefined method 'deep_symbolize_keys' for #<ActionController::Parameters:0x0000556eae99cda8>在Spree::HomeController#index,它有:
Spree::HomeController.class_eval do
def index
@searcher = build_searcher(params.merge(include_images: true))
@products = @searcher.retrieve_products
@taxonomies = Spree::Taxonomy.includes(root: :children)
end
end我在索利德斯的搜索选项上没有改变任何东西。
在运行“bundle install”之后,我就会得到这个错误,安装一切都很好。然后,我运行“rails‘s”,当我试图获得我的主页或显示任何产品的任何其他页面时,我会得到这个错误。
版本:
发布于 2018-07-28 22:05:09
这是Rails 5.1中不推荐的方法deep_symbolize_keys的一个问题。我刚刚为solidus_searchkick gem提交了一个拉请求。你可以在这里找到它,searchkick/pull/6/files
如果您将您的solidus_searchkick创业板指向该分支,它将工作。
https://stackoverflow.com/questions/50144101
复制相似问题