Ruby On Rails使用Bootstrap框架

rails使用bootstrap

1、在Gemfile中增加 gem ‘bootstrap-sass’, ‘~> 3.2.0.2’
2、bundle install
3、把assets/stylesheets/application.css重命名为application.css.scss
4、在这个文件中增加:
@import “bootstrap-sprockets”;
@import “bootstrap”;
5、在assets/javascriptsheets/application.js中增加:
//= require bootstrap-sprockets
6、完成。

猜你喜欢

转载自blog.csdn.net/dawn_chen121/article/details/50832004
今日推荐