jquery-datatables-rails icon indicating copy to clipboard operation
jquery-datatables-rails copied to clipboard

Generator not working in 3.1.0

Open TechRsch opened this issue 10 years ago • 1 comments

I'm trying to make sure my responsive installation is correct. I deleted all related records from application.js and application.css.scss and ran the generator. It returned a message that it updated application..js and did not mention application.css.scss. Neither file's content was actually changed. My IDE, Rubymine, did note that the files had been "updated", but there was no change to the content.

D:\BitNami\rubystack-2.0.0-11\projects\keyandcar>rails generate jquery:datatables:install responsive insert app/assets/javascripts/application.js

Thanks...

Update: I see you attempt to update application.css, not scss. Using CSS, I receive the insert message but it still doesn't update the file.

TechRsch avatar Nov 22 '14 15:11 TechRsch

Along those lines, under Responsive Installation, you say to add these files:

In app/assets/javascripts/application.js //= require dataTables/jquery.dataTables //= require dataTables/extras/jquery.dataTables.responsive

But, the second one doesn't exist. Should it be? //= require dataTables/extras/dataTables.responsive

And, given that, what is the correct order of these files? //= require dataTables/jquery.dataTables //= require dataTables/bootstrap/3/jquery.dataTables.bootstrap //= require dataTables/extras/dataTables.responsive

Great code!!! I really appreciate it! Thanks...

TechRsch avatar Nov 22 '14 15:11 TechRsch