GithubHelp home page GithubHelp logo

Comments (11)

ricardodovalle avatar ricardodovalle commented on August 21, 2024

@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.

nekapoor avatar nekapoor commented on August 21, 2024

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'
gem 'coffee-rails', '
> 3.2.1'
gem 'jquery-ui-rails'

gem 'uglifier', '>= 1.0.3'
end

group :production, :staging do
gem 'newrelic_rpm'
end

from jquery-datatables-rails.

ricardodovalle avatar ricardodovalle commented on August 21, 2024

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.

nekapoor avatar nekapoor commented on August 21, 2024

it worked! thank you so much!

from jquery-datatables-rails.

Vadorequest avatar Vadorequest commented on August 21, 2024

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.

ricardodovalle avatar ricardodovalle commented on August 21, 2024

@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.

Vadorequest avatar Vadorequest commented on August 21, 2024

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.

ricardodovalle avatar ricardodovalle commented on August 21, 2024

#98 merged
If the error persist, please reopen

from jquery-datatables-rails.

baxang avatar baxang commented on August 21, 2024

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.

heber28 avatar heber28 commented on August 21, 2024

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.

stevenm avatar stevenm commented on August 21, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.