La canalización de activos no funciona en 'application.scss' en mi aplicación Rails 4.2
Soy nuevo en Rails y me disculpo si esa es una pregunta estúpida. Pero no puedo resolver mi problema: agregué Bootstrap a mi nueva aplicación pero todavía no usa ningún estilo nuevo.
Cambié el nombre de application.css a application.scss y creé dicha estructura:
|-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
*/
En el archivo Gem he agregado
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 .
Intenté escribir cualquier regla de estilo en article.scss pero mi aplicación no las usa, así como cualquier estilo Bootstrap.