Comments (11)
@nekapoor It is weird.
You got the error at production or development environment?
What version of gem are you using?
Could you post your Gemfile, application.css and application.js, please?
from jquery-datatables-rails.
I get this in my development environment. I've pasted the relevant code below. Thank you so much.
APPLICATION.JS
//= require jquery
//= require jquery_ujs.js
//= require dataTables/jquery.dataTables
//= require dataTables/jquery.dataTables.bootstrap3
//= require_tree .
APPLICATION.CSS:
*= require_self
*= require dataTables/jquery.dataTables
*= require dataTables/jquery.dataTables.bootstrap3
*= require_directory .
GEMFILE:
source 'https://rubygems.org'
ruby "1.9.3"
gem 'rails', '~> 3.2'
gem 'jquery-rails'
gem 'unicorn' #roll back to this gem 'thin'
gem 'devise', '3.0.3'
gem "omniauth-facebook"
gem "omniauth-google-oauth2"
gem 'bigbluebutton-api-ruby'
gem "exception_notification", :git => "git://github.com/rails/exception_notification", :require => 'exception_notifier'
gem 'rails_admin', '0.4.9'
gem 'cancan'
gem 'haml'
gem 'sidekiq'
gem 'slim'
gem 'sinatra', :require => nil
gem 'clockwork'
gem 'less-rails'
gem 'therubyracer', platforms: :ruby
gem 'surveyor'
gem "paperclip" #, "~> 3.0"
gem 'ancestry'
gem 'wiziq-ruby', github: 'LearnToBeFoundation/wiziq-ruby'
gem 'kaminari'
gem 'bootstrap-kaminari-views'
gem 'twilio-ruby'
gem "recurrence", :require => "recurrence/namespace"
gem 'json'
gem 'acts-as-taggable-on'
gem 'useragent'
gem 'hub'
gem 'pg'
gem 'bitly'
gem 'active_attr'
gem 'jquery-datatables-rails', git: 'git://github.com/rweng/jquery-datatables-rails.git'
group :development, :test do
gem 'thin'
gem 'rspec-rails'
gem 'shoulda-matchers'
gem 'coderay', '~> 1.0.5'
gem 'jazz_hands', github: 'nixme/jazz_hands'
gem 'rb-fsevent'
gem 'guard-rspec'
gem 'factory_girl_rails'
gem 'quiet_assets'
end
group :development do
gem "better_errors"
gem "binding_of_caller"
end
group :test do
gem 'fivemat'
end
group :assets do
gem 'sass-rails', '> 3.2.3'> 3.2.1'
gem 'coffee-rails', '
gem 'jquery-ui-rails'
gem 'uglifier', '>= 1.0.3'
end
group :production, :staging do
gem 'newrelic_rpm'
end
from jquery-datatables-rails.
Please, try with a closed version:
gem 'jquery-datatables-rails', '~> 1.12.2'
This version 1.12.2 I am using at production at a client product and it is working.
I did a lot of update yesterday, but I created a "dev" branch to avoid troubles, maybe I did some mistake at master branch.
I will look closer your files and the master branch
from jquery-datatables-rails.
it worked! thank you so much!
from jquery-datatables-rails.
I had the same issue, I tried to install the gem based on the dev
branch but it failed.
Finally:
gem 'jquery-datatables-rails', '~> 1.12.2', git: 'git://github.com/rweng/jquery-datatables-rails.git'
Worked. Thanks.
from jquery-datatables-rails.
@Vadorequest I am working at dev branch, there a lot of error.
It is weird, because you don't need to add github address with you are using a closed version like '1.12.2'
Did you try only gem 'jquery-datatables-rails', '~> 1.12.2' ?
Thanks.
from jquery-datatables-rails.
Oh, I didn't try without the git url, because that was in the example in the README. My mistake was to try to use the dev branch.
from jquery-datatables-rails.
#98 merged
If the error persist, please reopen
from jquery-datatables-rails.
I ran into the same problem in production (works fine in development env) with the gem version 1.12.2.
ActionView::Template::Error (couldn't find file 'dataTables/jquery.dataTables.bootstrap3'
Reading previous comments, I think the error should have been fixed. I would love to hear any idea. Thank you!
from jquery-datatables-rails.
i get the same error, but i changed the asset files in this way:
app/assets/javascripts/application.js
//= require dataTables/jquery.dataTables
//= require dataTables/bootstrap/2/jquery.dataTables.bootstrap
app/assets/stylesheets/application.css
*= require dataTables/bootstrap/2/jquery.dataTables.bootstrap
because i was using bootstrap 2
https://github.com/rweng/jquery-datatables-rails
this worked fine
from jquery-datatables-rails.
I had a much simpler reason, the installer had inserted the require line in my application js
//= require dataTables/bootstrap/3/jquery.dataTables.bootstrap
BEFORE the Bootstrap require line
swapping them around so require bootstrap first then data tables solved
from jquery-datatables-rails.
Related Issues (20)
- Table in the index page is empty when first rendering. HOT 2
- get icons to show HOT 2
- Show details Icons not working HOT 1
- Uncaught TypeError: $(...).DataTable is not a function HOT 7
- I18n compatibility
- Sprockets::FileNotFound - dataTables/jquery.dataTables missing HOT 1
- ie "Object doesn't support property or method 'charAt'" error HOT 1
- TypeError: plugin is undefined HOT 2
- DataTables responsive is out of date with official package
- Support for Semantic UI styling
- Pagination Issue
- Generator no longer works with Rails 5.1 HOT 1
- DataTables not working anymore in production HOT 7
- Resize page cause reload datatables rails HOT 1
- Is this gem dead? HOT 1
- Ruby Sass End of Life HOT 6
- Could not find generator 'jquery:datatables:install' HOT 1
- Rails 5.2.3 + jquery-datatables-rails 1.12.2 + bootstrap 2 compatibility
- Compromised version 1.12.3?
- datatable is not working in safari
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jquery-datatables-rails.