thomas-mcdonald/bootstrap-sass — Issue #69: README.md update to avoid "An @import loop has been found"
Author: mcbsys
Created: 2012-02-18 00:23:46+00:00
State: open

The README said to "import 'bootstrap' in your SCSS file of choice, so I created bootstrap.css.scss and added the @import statement. I kept getting the Action Controller error "An @import loop has been found: ../app/assets/stylesheets/bootstrap.css.scss imports itself". Finally realized that it was importing the local file by name rather than going to the gem directory. Renamed my file to bootstrap_loader.css.scss and all is well.

May I suggest:

Import "bootstrap" in any SCSS file in your /app/assets/stylesheets directory to get all of Bootstrap's styles, mixins and variables! Don't use Sproket's //= require directives for SASS files, because they're horrible and will kill your cat. You can add the @import statement to a new file, e,g. bootstrap_loader.css.scss. Don't import bootstrap in application.css; that's not an SCSS file. And don't use a file named bootstrap.css.scss or it will try to import itself.