Assets-Pipeline funktioniert in "application.scss" in meiner Rails 4.2-App nicht.

Ich bin neu in Rails und entschuldige mich, wenn das eine blöde Frage ist. Aber ich kann mein Problem nicht lösen: Ich habe meiner neuen App Bootstrap hinzugefügt, aber sie verwendet immer noch keine neuen Stile.

Ich habe application.css in application.scss umbenannt und eine solche Struktur erstellt:

|-stylesheets
   |-elements
   |--articles
   |---article.scss
   |-application.scss

Application.scss

/* User styles
* Plugins first
 */
@import "bootstrap-sprockets";
@import "bootstrap";

@import "elements/**/*";

/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
 * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any styles
 * defined in the other CSS/SCSS files in this directory. It is generally better to create a new
 * file per style scope.
 *
 *= require_self
 */

In Gem-Datei, die ich hinzugefügt habe

source 'https://rubygems.org'
ruby '2.2.0'

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.2'

# Установка Bootstrap
gem 'sass-rails'
gem 'bootstrap-sass'
#Autoprefixer optional, but recommended. It automatically adds the proper vendor prefixes to your CSS code when it is compiled.
gem 'autoprefixer-rails'

Application.js

//= require jquery
//= require jquery_ujs
//= require bootstrap-sprockets
//= require_tree .

Ich habe versucht, Stilregeln in article.scss zu schreiben, aber meine App verwendet sie nicht, so wie alle Bootstrap-Stile.

Antworten auf die Frage(6)

Ihre Antwort auf die Frage