rails ajax_pagination couldn't find file 'history'

六眼飞鱼酱① 提交于 2019-12-05 19:46:38

This appears to be a bug in the jquery-historyjs gem, which ajax_pagination depends on. You may want to report an issue on their github repo.

As a work-around, you could create a blank history.js file in app/assets/javascripts and try bringing in historyjs-rails.

Ivan Novozhenets

I had the same issue, all you need to do is:

  • Add gem 'jquery-historyjs' to your Gemfile,
  • Run bundle install
  • Then rails generate historyjs:install
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!