Rails 4: cannot load such a file - sass

I want to use bootstrap in my project. My operating system is Windows, Ruby version 1.9.3, Rails version 4.0.4.

I try to bind one stone every time because there is a dependency in some stone when I complete the package installation.

bootstrap-sass (2.3.2.0)
sass (3.3.5, 3.2.19)
sass-rails (4.0.2)
sprockets (2.12.0, 2.11.0)

Now add //= require bootstrapin application.jsand add @import "bootstrap"in application.css.scss. But when I start the server, I got Load Error in *Controller#home:

cannot load such file -- sass (in D:/first_app/app/assets/style sheets / application.css.scss

Extracted source (around line # 5):

<%= stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true %> <%= javascript_include_tag "application", "data-turbolinks-track" => true %> <%= csrf_meta_tags %>

Rails.root: D:/rails_projects/first_app

Any tips?

+4
source share
1 answer

Make sure you also delete the asterisk //= requirein the file application.css.scss?

, , gem . rubygems, 2.3.2 boostrap-rails 3.1 saas. bundle install gem Gemfile.

, Rails 4, bootstrap-rails? bootstrap-rails 3.1.1.0 ( 13 2014 ).

0

Source: https://habr.com/ru/post/1536744/


All Articles