在heroku制作上使用DataTables gem时,出现以下错误。rails 3.2找不到文件'jquery.ui.core'
couldn't find file 'jquery.ui.core'
couldn't find file 'jquery.ui.theme'
我也跟着在http://railscasts.com/episodes/340-datatables?view=asciicast 给任何人都不会有任何想法的办法?
在heroku制作上使用DataTables gem时,出现以下错误。rails 3.2找不到文件'jquery.ui.core'
couldn't find file 'jquery.ui.core'
couldn't find file 'jquery.ui.theme'
我也跟着在http://railscasts.com/episodes/340-datatables?view=asciicast 给任何人都不会有任何想法的办法?
jquery-datatables-rails gem不会安装jQuery UI gem。至少他们的.gemspec这样说。所以,你需要手动添加宝石在你Gemfile
gem 'jquery-ui-rails'
Github页INFACT建议在资产组中添加
group :assets do
gem 'jquery-ui-rails'
end
如果不使用捆绑,您只需使用以下命令安装宝石:
gem install jquery-ui-rails
谢谢我在Gemfile中也有jquery-ui-rails gem。将宝石申报放在资产组之外。我认为这是针对heroku的。 –
很高兴知道它的工作,并感谢让我们知道黑客的英雄:)。 – HungryCoder
我改变了运行服务器的Gemfile。重新启动服务器解决了这个问题。
请向我们展示您的gemfile,您的js清单文件等。 – HungryCoder