GithubHelp home page GithubHelp logo

Comments (6)

ricardodovalle avatar ricardodovalle commented on August 21, 2024

@pablosky Any error? Are you using turbolink?

Could you try specifying the version at your Gemfile:
gem 'jquery-datatables-rails', '~> 1.12.2'

from jquery-datatables-rails.

ricardodovalle avatar ricardodovalle commented on August 21, 2024

It is product.js or product.js.coffee the name of file?
Look at Developer Tools of your browser, maybe, there are erros at javascript tab.

from jquery-datatables-rails.

pablosky avatar pablosky commented on August 21, 2024

jquery-datatables-rails (1.12.2)

i tried with .js and with .js.coffee both are not working, ill try with the browser ,also i had another rails page that used to work and its not working anymore too, if i use coffee now gives me , am not using turbolinks for the record

ExecJS::RuntimeError in Products#index
Showing C:/cocacola/app/views/layouts/application.html.erb where line #6 raised:

["ok","(function() {\n jQuery(function() {\n return $('#products').dataTable();\n });\n\n}).call(this);\n"](in C:/cocacola/app/assets/javascripts/products.js.coffee)

from jquery-datatables-rails.

ricardodovalle avatar ricardodovalle commented on August 21, 2024

The file must bee .js.coffee to your code.
It is strange, i tried a example application and it worked.

Are you using therubyracer? I saw this character error with windows 8 sstephenson/execjs#111

from jquery-datatables-rails.

pablosky avatar pablosky commented on August 21, 2024

yeah it was a combination between my coffee and the order of the js files added to the application.js file, this is the correct order if someone gets the same problem

//= require jquery
//= require jquery_ujs
//= require dataTables/jquery.dataTables
//= require twitter/bootstrap
//= require_tree .

from jquery-datatables-rails.

keganquimby avatar keganquimby commented on August 21, 2024

reordering files did it for me as well.

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.