How to integrate purchased theme with rails 5 application ? -


i have purchased flatkit theme themeforst don't know how integrate purchased theme rails 5 application ?

i got solution.

step1: place asset files in vendor directory.

step2: import required css & scss file add require statement in application.css

ex) *=require assets/animate.css/animate.min.css

note: animate.min.css stored in location app-directory/vendor/assets/animate.css

step3: import required js files add require statement in application.js

ex) //= require html/scripts/ui-nav.js

note: ui-nav.js stored in location app-dir/vendor/html/scripts/ui-nav.js

step4: configure asset path add following statement in assets.rb rails.application.config.assets.paths << rails.root.join('vendor')

now can access theme future.


Comments