Skip to main content
Ask A Question
You’re not receiving notifications from this thread.

Can not use toast of bootstrap in rails

Javascript • Asked by Junyao111

I did yarn add bootstrap jquery popper.js and import bootstrap into the app.
Also, bootstrap's popover and tooltip style works well.
But when I add a toast in page and run $('div.toast').toast('show') in chrome's console, it says $(...).toast is not a function
Do you know what's wrong?

Sounds like you missed a step. I just updated the repository to include toasts in the example and they work just fine.

Compare your code with the repository and see what you missed.

Login or Create An Account to join the conversation.

Subscribe to the newsletter

Join 30,005+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.