0

I´m just starting with Rails and web developing, I try to follow different tutorials but I get lost when it comes to Bootstrap installation, I add gem 'bootstrap-sass' and gem 'autoprefixer-rails' and run bundle install without problem.

But when I modify the application.css.scss file, delete all the comments and type only: @import "bootstrap"; It doesn´t work.

I also noticed that different to the tutorials that I see, when I type @import "*" the phrase color doesn´t change in the editor (like it is not being recognized?).

This is how it appears on all the tutorials that I find

And this is how it looks in my Sublime Text editor

Could my problem be here? The Editor or the file doesn´t recognize the @import command or is it something else?

Thanks a lot!

3
  • Did you do everything like is here:: github.com/twbs/bootstrap-sass? Commented Nov 10, 2015 at 19:10
  • Do you have gem sass in your gemfile? You can also find it here on github Commented Nov 10, 2015 at 19:19
  • Hi, thanks for trying to help! Yes, I do it like there, Mateusz, until it comes to "Bower with Rails", that I don´t do.. And I have 'sass-rails', '~> 4.0.3', is it what you ask, SunnyK? The thing is I tried to follow exactly several youtube tutorials that also only do this first step, not Bower, not Compass... but even so I don´t get same results... Can the problem be in the editor? I really wonder why my @import ".." command stays white... Commented Nov 10, 2015 at 19:21

1 Answer 1

0

Ok, I guess I should close this, I didn´t really solve the problem, I just started from the beginning with a different app and now the @import command IS working, and it does show in red color and Bootstrap is also working..

I still don´t know what was wrong with the first app.. the only thing I did different this time, is that when installing the app I didn´t update rubygems.. I don´t know what else can be different..

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.