Reputation: 12869
I am getting the following errors when using DataTables gem on heroku production.
couldn't find file 'jquery.ui.core'
couldn't find file 'jquery.ui.theme'
I followed the approach given at http://railscasts.com/episodes/340-datatables?view=asciicast Does anyone have any idea?
Upvotes: 1
Views: 3191
Reputation: 507
I changed the Gemfile with the server running. Restart the server solved this problem.
Upvotes: 4
Reputation: 7616
jquery-datatables-rails gem does not install jQuery UI gem. At least their .gemspec says so. So, you need to add the gem manually in your Gemfile
gem 'jquery-ui-rails'
Github page infact recommends to add in assets group
group :assets do
gem 'jquery-ui-rails'
end
If you do not use bundler, you just install the gem using following command:
gem install jquery-ui-rails
Upvotes: 3