Could not find file 'twitter / bootstrap' (ROR)

Here is the link https://github.com/Gtar69/games

I have a problem enter image description here

I did with the purchase below

In the gemfile:

gem "bootstrap-sass"

In terminal

bundle install

AT app/assets/stylesheets/application.css

*= require bootstrap

But the local server still cannot display the bootstrap because it said that it could not find the boot file ...

Thanks for the help ~

+4
source share
4 answers

Follow these steps:

  • Rename the file "application.css" to "application.css.scss".
  • Delete all contents and save the line @import "bootstrap";in this file.
  • Start the server using "rails s" and check if the elements for the login form work.

, .

enter image description here

+6

, ( bootstrap-saas).

README:

Bootstrap app/assets/stylesheets/application.css.scss:

@import "bootstrap-sprockets";
@import "bootstrap";

( ):

, .css.scss( .css.sass Sass). Rails, .css. , Sass, :

$ rm app/assets/stylesheets/application.css

application.css.scss . app/assets/stylesheets/application.css, .

, :

Games Store with Bootstrap

+4

*= require bootstrap @import "bootstrap";, . *= require bootstrap. .

+3

https://github.com/twbs/bootstrap-sass#a-ruby-on-rails. application.css application.css.scss

$ mv app/assets/stylesheets/application.css app/assets/stylesheets/application.css.scss

@import "bootstrap"; .

+1

All Articles