我从 https://github.com/ronalchn/ajax_pagination
当我重新启动我的服务器我得到这个消息
找不到文件历史 (在 /Users/user/.rvm/gems/ruby-1.9.3-p362/gems/ajax_pagination-0.6.3/lib/assets/javascripts/ajax_pagination.js.erb:3)
和资产清单插入电话,导轨的版本是3.2.8
我曾试图安装一个历史的宝石( https://github.com/philostler/historyjs-rails )或添加history.js资产,但没有什么帮助。
感谢您的帮助!
解决方案这似乎是在 jQuery的-historyjs 的宝石,这ajax_pagination依赖。您可能要对他们的github回购报告问题。
作为变通,您可以创建在app /资产/ JavaScript的一个空白history.js文件,并尝试引进的 historyjs护栏的。
I have installed ajax_pagination gem from https://github.com/ronalchn/ajax_pagination
When I restart my server i get this message
couldn't find file 'history' (in /Users/user/.rvm/gems/ruby-1.9.3-p362/gems/ajax_pagination-0.6.3/lib/assets/javascripts/ajax_pagination.js.erb:3)
and inserted calls in assets manifests, rails version is 3.2.8
I had tried installing a history gem ( https://github.com/philostler/historyjs-rails ) or adding history.js to assets but nothing helps
Thanks for any help!
解决方案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.