[英]Upgrading the twitter bootstrap gem from 2.x to 3.x or 4.x is breaking the UI styles
I am trying to upgrade the twitter-bootstrap-rails
gem version from 2.2.8 version to 3.2.2 version
since 2.2.8 has vulnerabilities.我正在尝试将
twitter-bootstrap-rails
gem 版本从2.2.8 version to 3.2.2 version
,因为 2.2.8 存在漏洞。
But while upgrading the gem version it is breaking the UI styles everywhere in the application nav-bar, search, and modal box, etc.但是在升级 gem 版本的同时,它破坏了应用程序导航栏、搜索和模式框等处的 UI styles。
I followed the steps given in the official documentation by running this command rails generate bootstrap:install less
after doing the bundle install.
我按照官方文档中给出的步骤运行此命令
rails generate bootstrap:install less
在进行bundle install.
Is there any other configurations that we need to change other than this?除此以外,我们还需要更改其他配置吗? I thought it will be a simple gem upgrade but not sure where things are going wrong.
我认为这将是一个简单的 gem 升级,但不确定哪里出了问题。
Any help would be appreciated.任何帮助,将不胜感激。 Thanks.
谢谢。
You should have a look at the GetBoostrap documentation (the successor of "Twitter Bootstrap) and should install the您应该查看 GetBoostrap 文档(“Twitter Bootstrap 的继任者”)并安装
gem 'bootstrap', '~> 4.5.0'
The migration guide is here: https://getbootstrap.com/docs/4.5/migration/迁移指南在这里: https://getbootstrap.com/docs/4.5/migration/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.