rweng / jquery-datatables-rails

jquery-datatables gem for rails
MIT License
564 stars 339 forks source link

DataTables not working anymore in production #226

Closed rlopzc closed 5 years ago

rlopzc commented 7 years ago

I had table tools implemented in production and haven't touch that project in months. Recently the table tools are not showed in production, only in development.

Production site html (empty html):

<div class="DTTT_container"></div>

Development site html: image

jacobdlewis commented 7 years ago

@romariolopezc Were you able to resolve this issue? I'm also seeing this in a PRD site, where the plugin works as expected in DEV.

seanjhulse commented 6 years ago

I'm experiencing a similar issue. Perfect on Development. Nothing on production.

rlopzc commented 6 years ago

@jacobdlewis @seanjhulse I updated manually the JS files with the latest versions, and upgraded the initialization of each table. Is working now

victorbuttner commented 6 years ago

Hello Guys, I'm having the same issue, how did you sovled it? Wich files you updated on your code?

seanjhulse commented 6 years ago

@victorbuttner I believe this was solved by removing Turbolinks from my Gemfile (a Ruby on Rails web application). You might be experiencing a similar issue. If not, I don't believe the existing codebase is at fault. Can you post your code?

victorbuttner commented 6 years ago

solved it removing turbolinks and downloading the last version of datatables , adding it into vendor folder on app/assets/javascripts.

jemang commented 6 years ago

https://github.com/mkhairi/jquery-datatables