这是链接https://github.com/Gtar69/games

我有问题

我已经完成采购如下

在 Gemfile 中:

gem "bootstrap-sass"

在终端
bundle install

app/assets/stylesheets/application.css
*= require bootstrap

但是本地服务器仍然无法显示 bootstrap 格式,因为它说它找不到 bootstrap ......

谢谢帮助~

最佳答案

请按照以下步骤操作:

  • 将文件“application.css”重命名为“application.css.scss”。
  • 删除所有内容,只保留行
    此文件中的 @import "bootstrap";
  • 使用“rails s”运行服务器并检查登录表单是否正常。

  • 如有问题,评论。

    10-08 04:49