Skip to content

Uncaught ReferenceError: simpleDatatables is not defined #19

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
GasCreature opened this issue Apr 3, 2013 · 1 comment
Open

Uncaught ReferenceError: simpleDatatables is not defined #19

GasCreature opened this issue Apr 3, 2013 · 1 comment

Comments

@GasCreature
Copy link

I had it working before in another project but in a new project, I get the error shown in the title of this issue. I think it might be due to some JavaScript load order but can't identify it. Any ideas?

@GasCreature
Copy link
Author

I had to manually copy the .js and .coffee files from the site's gem/simple_datatables-0.3.0/vendor/assets/javascripts folder into my project's app/assets/javascripts folder. Now it works.

I thought //= require simple_datatables in my application.js (the "manifest") would have done the trick.

I checked my Rails.application.config.assets.paths in the Rails console, and it does include the expected component:

...../RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/simple_datatables-0.3.0/vendor/assets/javascripts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant