Open ghost opened 9 years ago
@stephanemaarek i have almost the same issue that doesn't load properly the js and css, but for you case try to use the gem 'jquery-turbolinks'
.
Hi Carlos,
Thanks for responding. As you can see in the gem file I posted I already have the jquery-turbolinks gem. Did you mean I should remove it?
Thanks
On Wed, Sep 9, 2015, 12:04 PM Carlos Antonio notifications@github.com wrote:
@stephanemaarek https://github.com/stephanemaarek i have almost the same issue that doesn't load properly the js and css, but for you case try to use the gem 'jquery-turbolinks'.
— Reply to this email directly or view it on GitHub https://github.com/rweng/jquery-datatables-rails/issues/194#issuecomment-138957611 .
Nop, keep it, I can see we got the same issue, I'm looking around if I got something I'll post it.
I found the solution from official DataTables site...
Hey guys, i just wanted you to know that after the upgrade to JQuery 1.11.3 DataTables 1.10.7 is not working anymore. You always get this error message: TypeError: invalid 'in' operand a
When you switch back to JQuery 1.11.2 DataTables is working again. More Information is available under : http://stackoverflow.com/questions/30912605/typeerror-invalid-in-operand-a#
You need jquery-rails v 4.0.4
:+1: Thank you @dimidev, I'll try tonight and I'll let you know.
works for me as well! I guess the alternative would be to do a pull request and update the datatables version on this gem?
On Sun, Sep 13, 2015 at 11:26 AM, Carlos Antonio notifications@github.com wrote:
[image: :+1:] Thank you @dimidev https://github.com/dimidev, I'll try tonight and I'll let you know.
— Reply to this email directly or view it on GitHub https://github.com/rweng/jquery-datatables-rails/issues/194#issuecomment-139887215 .
ummm I'm still with the issue, yo @stephanemaarek can you please show you Gemfile
Make sure you run bundle update
and that your jquery version is indeed
4.0.4 (as shown by the console output)
source "https://rubygems.org"
gem 'activeadmin', github: 'activeadmin'
gem "activerecord-import", ">= 0.4.0"
gem "active_type", ">= 0.3.2"
gem "autoprefixer-rails", ">= 5.0.0.1"
gem "bcrypt", "~> 3.1.7"
gem "bootstrap_form", "~> 2.3.0"
gem 'bootstrap-sass', '~> 3.3.5'
gem 'carrierwave', github: 'carrierwaveuploader/carrierwave'
gem 'coderay'
gem "coffee-rails", "~> 4.1.0"
gem 'devise'
gem "devise-async"
gem "dotenv-rails", ">= 2.0.0"
gem "font-awesome-rails"
gem "faker"
gem "fog-aws"
gem 'jquery-rails', '4.0.4'
gem "jquery-turbolinks"
gem 'jquery-datatables-rails', '~> 3.3.0'
gem "mail", ">= 2.6.3"
gem "marco-polo"
gem 'newrelic_rpm'
gem "pg", "~> 0.18"
gem "pg_search"
gem "rails", "4.2.4"
gem "rchardet"
gem 'resque', "~> 1.25.2", :require => "resque/server"
gem 'roo', '~> 2.1.0'
gem 'sass-rails', '>= 3.2'
gem "secure_headers", ">= 2.1.0"
gem 'smarter_csv'
gem 'simple_form'
gem "sidekiq"
gem "sinatra", ">= 1.3.0", :require => false
gem "turbolinks", ">= 2.5.2"
gem 'x-editable-rails'
gem 'zeroclipboard-rails'
gem 'will_paginate', '~> 3.0.6'
On Mon, Sep 14, 2015 at 2:53 PM, Carlos Antonio notifications@github.com wrote:
ummm I'm still with the issue, yo @stephanemaarek https://github.com/stephanemaarek can you please show you Gemfile
— Reply to this email directly or view it on GitHub https://github.com/rweng/jquery-datatables-rails/issues/194#issuecomment-140173752 .
Moving from the 4.0.5 gem to the 4.0.4 gem worked for me also.
Dropping back to rails-jquery 4.0.4, which presumably dropped us back to jquery 2.1.3 fixed the problem but this is not a good long term solution since we'd want the latest version of jQuery. Is the incompatibility reported in dataTables? I see something fixed in April but perhaps this is a different problem.
https://www.datatables.net/forums/discussion/27524/broken-in-jquery-2-1-4-1-11-3
I am having the same issue with: jquery-datatables-rails (3.4.0) jquery-rails (4.2.1) jquery-ui-rails (5.0.5)
Strangely, it works fine in puma with development mode (without precompiled assets) but no styles at all show up in production mode. I verified that the precompiled application-
Is the require syntax in the original application.css.scss
example a copy/paste typo? Wouldn't it be *= require
?
The plugin doesn't seem to be working for me... I followed the instructions
I basically load my page. I see a wrong formatting. If I type something in the search bar, then the pagination appears and sticks. It seems the table is not rightly loaded at first? and it looks like the formatting is stick very weird? (see the arrows being partly blank)
See screenshots:
Here is my code:
My
application.css.scss
:My
application.js
And my
Gemfile
and the html..