简体   繁体   English

将 twitter 引导 gem 从 2.x 升级到 3.x 或 4.x 会破坏 UI styles

[英]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.

相关问题 从Rails 2.x升级到3.x的主要优点/好处是什么?我们应该等待下一个版本吗? - What are the main advantages/benefits of upgrading from Rails 2.x to 3.x? Should we wait for the next release? 从早期版本升级到3.x(S3存储)后,回形针不生成缩略图/样式/尺寸 - Paperclip not generating thumbnails/styles/sizes after upgrading from early version to 3.x (S3 storage) 为什么在已经有Rails 2.x的情况下,prawnto gem安装rails 3.x? - Why prawnto gem installs rails 3.x when there is already a rails 2.x? 在使用Rails 3.x时如何自定义Twitter引导程序? - How to customize Twitter bootstrap while using Rails 3.x? 如何使用Ruby on Rails从零开始创建博客-从Rails 2.x到3.x-无可见注释 - How to Create a Blog from Scratch Using Ruby on Rails - from rails 2.x to 3.x - no visable comments 在Rails(2.x或3.x)中优化视图性能的提示/技巧? - Tips/Tricks for optimizing performance of views in Rails (2.x or 3.x)? 在Rails 2.x和3.x中使用ActiveRecord进行“喜欢”查询吗? - Do “like” queries with ActiveRecord in Rails 2.x and 3.x? 教程应用中的路由错误从rails 2.x转换为3.x. - Routing error in tutorial app converted from rails 2.x to 3.x RoR 3.x-使用引擎创建gem文件 - RoR 3.x - create gem file with engine Routes.rb - 从Rails 2.x到Rails 3.x“如何使用Ruby on Rails从头开始创建博客”教程 - Routes.rb - from Rails 2.x to Rails 3.x “How to Create a Blog from Scratch Using Ruby on Rails” tutorial
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM