找不到文件“twitter/bootstrap"(ROR) [英] Couldn't find file 'twitter/bootstrap' (ROR)
本文介绍了找不到文件“twitter/bootstrap"(ROR)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这是链接https://github.com/Gtar69/games
我遇到了一个问题
我已经完成了如下采购
在 Gemfile 中:
In Gemfile:
gem "bootstrap-sass"
在终端
bundle install
在app/assets/stylesheets/application.css
*= require bootstrap
但是本地服务器还是不能显示bootstrap格式,因为它说找不到bootstrap...
But the local server still can not show bootstrap formation because it said it can not find bootstrap...
谢谢帮助~
推荐答案
请按照以下步骤操作:
- 将文件application.css"重命名为application.css.scss".
- 删除所有内容,只保留行
@import "bootstrap";
在这个文件中. - 使用rails s"运行服务器并检查登录表单是否正常.
如有问题,评论.
这篇关于找不到文件“twitter/bootstrap"(ROR)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文