Pratik Khadloya
Pratik Khadloya

Reputation: 12869

rails 3.2 couldn't find file 'jquery.ui.core'

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

Answers (2)

Kadu Diógenes
Kadu Diógenes

Reputation: 507

I changed the Gemfile with the server running. Restart the server solved this problem.

Upvotes: 4

HungryCoder
HungryCoder

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

Related Questions