简体   繁体   中英

how do I install twitter bootstrap rails 4 on just one page?

Is there a way to add twitter bootstrap to just one page w/o changing the others?

When I use rails g bootstrap:install it changes my application.css and thus changes some of my other pages.

I thought I could use rails g bootstrap:install rails g bootstrap:themed Blog but it is making changes to my other pages like I said.

Thank you!

只需在需要它的页面上手动添加一个指向您的引导文件的css链接标签即可。

rails g bootstrap:install will place the bootstrap relative files into the assets pipeline which will make it available in all pages.

You can just download the bootstrap relative file into the public folder and make a css link in the page you need.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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