简体   繁体   English

Rails Forem Bootstrap主题不起作用

[英]Rails Forem Bootstrap Theme not working

I'm using these gems in a Rails4 project: 我在Rails4项目中使用这些gems:

gem 'forem', :github => "radar/forem", :branch => "rails4"
gem 'forem-bootstrap', :github => "radar/forem-bootstrap"

I have this is my applications.js: 我有这是我的applications.js:

//= require forem

I have this in my application.css file: 我的application.css文件中有此文件:

 *= require forem-bootstrap

I have these files in my assets/stylesheets folder: 我的assets / stylesheets文件夹中有以下文件:

forums.css.scss
posts.css.scss
topics.css.scss

The forum works, but it's not Bootstrap looking. 该论坛有效,但是看起来不像Bootstrap。

What am I doing wrong? 我究竟做错了什么?

Thanks for the help! 谢谢您的帮助!

UPDATE1 更新1

My app is using Bootstrap3 - is that part of the problem? 我的应用程序正在使用Bootstrap3-这是问题的一部分吗?

我通过将此文件添加到布局中来使其工作:

forem.html.erb

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM