Use 'noty' Js Library In Rails 5
I am trying to make noty.js ( https://ned.im/noty/#/installation - a library for notifications) work into my Rails app. I have installed it with npm npm install noty Now, it ap
Solution 1:
If you're not using webpack or some other JS asset management system, installing with NPM won't work. You'll need to
- Download
noty.css
andnoty.js
, place them in their respective assets directory - Add them to your
assets.rb
- Restart your server
- Reference the file in your layout prior to your
application.js
Read the guides on the Asset Pipeline for more details.
<%= stylesheet_link_tag "noty" %>
<%= javascript_include_tag "noty" %>
Post a Comment for "Use 'noty' Js Library In Rails 5"