couldn't find file 'dataTables/jQuery.dataTables'
couldn't find file 'dataTables/jQuery.dataTables'
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
[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
This discussion has been closed.
Replies
Allan