Ich habe Probleme, Bootstrap in eine bestehende Site zu bekommen. Ich mache folgendes:
in Gemfile (schon haben: gem "sass-rails", "~> 3.2.3"
): hinzufügen
gem "bootstrap-sass", "~> 2.1.0.0"
bei cli:
bundle install
in application.css füge zum Anfang hinzu:
@import "bootstrap";
in application.js (dieser Teil funktioniert gut), fügen Sie hinzu
//= require jquery
//= require bootstrap
Webrick neu starten
im Layout ist das gesamte Javascript vorhanden (die Kompilierung findet in development.log statt); keiner der CSS ist da.
Was mache ich falsch? Oder was soll ich mir als nächstes ansehen? Sollte ich die Bootstrap-Dateien / app / assets / stylesheets sehen?
Danke
Antworten:
3 für die Antwort № 1Stellen Sie sicher, dass Sie hinzufügen config.rb:
require "bootstrap-sass"
compass install bootstrap
Quelle: https://github.com/thomas-mcdonald/bootstrap-sass#existing-project
0 für die Antwort № 2
application.css musste application.css.scss sein