Adding twitter-bootstrap-rails with an existing rails app

后端 未结 5 488
不思量自难忘°
不思量自难忘° 2021-02-08 00:11

I am trying to use twitter-bootstrap-rails with an existing rails application and getting the following error when i refreshed the page.

no such file to load -- less (

5条回答
  •  梦毁少年i
    2021-02-08 01:03

    Using rails 3.2.13:

    After I installed the 3 gems (therubyracer / less-rails / twitter-bootstrap-rails) I replaced this line *= require twitter/bootstrap with *= require bootstrap_and_overrides in application.css.

    From the github updating guide:

    This file imports Bootstrap and responsive styles for you (Responsive module is separated.) https://github.com/seyhunak/twitter-bootstrap-rails/wiki/Upgrading-Guide

提交回复
热议问题