In our Rails 3.2 App with rack-pjax enabled appears the following Problem:
- You click on a link, a page with datatable in it loads trough pjax. Everything is fine.
- You click on antoher link the page "whatever" loads.
- You hit the back-button the datatables page loads. BUT the datatable is not working.
Sometimes it loads 2 Tables (with no data in it), sometimes it loads just the old datatable. but its not possible to manipulate the data (searching, go to page 2 etc.). Its completly static.
The Data for the table is served via json (server-side processing) from the rails part of the app. We've already tried to destroy and rebuild the datatable on "pjax:start" or "pjax:end"
Thanks for your Help :)