Skip to content
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

//= require data-confirm-modal does not work after installing the gem #67

Open
chrilleferna opened this issue Feb 27, 2018 · 4 comments

Comments

@chrilleferna
Copy link

I installed them gem and inserted the //= require data-confirm-modal in application.js
This resulted in a Sprocket error with message:
couldn't find file 'data-confirm-modal' with type 'application/javascript'

So I had to add the data-confirm-modal.js manually to my assets/javascripts directory :-(

@vjt
Copy link
Contributor

vjt commented Mar 10, 2018

Hello, this is bizarre. Did you restart the server after installing the gem? Care to provide the Rails version you're using?

Thanks

@sabatesduran
Copy link

sabatesduran commented Nov 16, 2018

It doesn't work for me either I follow the instructions and I restarted the server but I still get the same js console error:

Uncaught Error: The bootstrap modal plugin does not appear to be loaded.

I use Bootstrap 4 and Rails 5.1.2.

@jesusabarca
Copy link

I'm getting the same error as well when running rails assets:precompile

@jesusabarca
Copy link

Nvm, the gem was included only for development and testing, that's why we were getting the error in production 😅

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

4 participants