For Node.js, Bower is a popular tool for managing various frameworks. for Rails, the normal method is to find the corresponding front-end framework on RubyGems Gem, and add it to Gemfile. But this method does not solve the dependencies very well, and most of this Gem It is developed by a third-party developer and does not guarantee the authenticity of the framework and synchronization with the latest version.
Later I found a website: Rails Assets can solve this problem well, which is equivalent to The bridge between Bundler and Bower. Search directly for the required framework name, add it to the Gemfile according to the installation instructions, and run Bundle Install, and then reference the framework in application.js, application.css or other places.