couldn't find file 'dataTables/jQuery.dataTables'

couldn't find file 'dataTables/jQuery.dataTables'

mullaneymullaney Posts: 1Questions: 0Answers: 0
edited October 2012 in General
Hello I'm trying to implement dataTables per the railscast[1] on it. I just want to setup the simple client side version he introduces in the beginning. So far I've added this to my gem file:

[code]group :assets do
gem 'jquery-datatables-rails', github: 'rweng/jquery-datatables-rails'
gem 'jquery-ui-rails'
end[/code]

I ran bundle install. And then added this to my app/assets/javascripts/application.js:

[code]//= require dataTables/jquery.dataTables[/code]

And this to my app/assets/stylesheets/application.css:

[code]*= require dataTables/jQuery.dataTables[/code]

When I fire up the development server I get this error:

[code]couldn't find file 'dataTables/jQuery.dataTables'
(in /Users/ircmullaney/RubyCode/cif/app/assets/stylesheets/application.css:13)[/code]

I'm sure I'm missing something simple here, but not sure what it is. Any suggestions?

[1]: http://railscasts.com/episodes/340-datatable

Cross posted on stackoverflow: http://stackoverflow.com/questions/12960742/railscast-340-datatables-couldnt-find-file-datatables-jquery-datatables

Replies

  • allanallan Posts: 63,534Questions: 1Answers: 10,475 Site admin
    No idea I'm afraid - you'd need to refer to the gem's documentation or look through its paths to see where it has installed DataTables. The gem is 3rd party and not part of the core DataTables project.

    Allan
This discussion has been closed.