1

I have a application.css.scss with the following content -

@import bootstrap

Now I would like to use the chosen-rails gem, and add the following sprokets directive to my application.css.scss file -

*= require chosen

I installed the sprockets-sass gem, and changed my application.css.scss file to -

@import bootstrap
//*= require chosen

However I dont see the chosen css appear, what am I doing wrong?

murtaza52
  • 46,887
  • 28
  • 84
  • 120

1 Answers1

4

Try using only the @import syntax:

@import 'bootstrap'
@import 'chosen'

The 'sass-rails' gem instructs not use the require syntax in SASS files.

Yarin
  • 173,523
  • 149
  • 402
  • 512
Ross Allen
  • 43,772
  • 14
  • 97
  • 95