2016-11-13 6 views
1

많은 솔루션을 살펴본 후에도 문제가 해결되지 않았습니다. Windows OS에서 실행되는 Rails 5.0.0.1을 사용하고 있습니다. 번들 설치를 완료하고 서버를 재시작하고 sass-rails를 다운 그레이드했지만 문제를 해결할 수없는 것 같습니다. 나는이 필요부트 스트랩을 가져올 수 없습니다.

보석 : 부트 스트랩 - 말대꾸 < 3.3.7> 말대꾸 레일 < 5.0.6, 내 application.scss 파일에서 3.2.0>

:

@import "bootstrap-sprockets"; 
@import "bootstrap"; 
내 application.js에서

파일 :

//= require jquery 
//= require jquery_ujs 
//= require turbolinks 
//= bootstrap-sprockets 
//= require_tree . 

The error page

도와주세요! 감사!

편집 다음은 내 보석의 목록입니다 은 (그것은 두 가지 버전을 가지고 사용하지 않았다하지만 난 최대 몇 가지를 엉망 것 같아 어떻게 말대꾸 레일을 다운 그레이드 한 다음에 대한 autoprefixer 레일 보석을 설치할 때 I 찾은 다른 용액)

* LOCAL GEMS *

actioncable (5.0.0.1) actionmailer (5.0.0.1, 4.2.6) actionpack (5.0.0.1, 4.2.6, 3.2. actionview (5.0.0.1, 4.2.6) activejob (5.0.0.1, 4.2.6) activemodel (5.0.0.1, 4.2.6, 3.2 activerecord (5.0.0.1, 4.2.6) activesupport (5.0.0.1, 4.2.6, 3 arel (7.1.2, 7.1.1, 6.0.3) autoprefixer-rails (6.5.3) bigdecimal (default: 1.2.6) binding_of_caller (0.7.2) bootstrap-sass (3.3.7) builder (3.2.2, 3.0.4) bundler (1.13.6, 1.12.5) byebug (9.0.5) coffee-rails (4.2.1, 4.1.1) coffee-script (2.4.1) coffee-script-source (1.10.0) concurrent-ruby (1.0.2) debug_inspector (0.0.2) erubis (2.7.0) execjs (2.7.0) gem-path (0.6.1) globalid (0.3.7) hike (1.2.3) i18n (0.7.0) io-console (default: 0.4.3) jbuilder (2.6.0) journey (1.0.4) jquery-rails (4.2.1) json (1.8.3, default: 1.8.1) loofah (2.0.3) mail (2.6.4) method_source (0.8.2) mime-types (3.1) mime-types-data (3.2016.0521) mini_portile2 (2.1.0) minitest (5.9.0, 5.4.3) multi_json (1.12.1) nio4r (1.2.1) nokogiri (1.6.8 x64-mingw32) pkg-config (1.1.7) power_assert (0.2.2) psych (default: 2.0.8) puma (3.6.0) rack (2.0.1, 1.6.4, 1.4.7) rack-cache (1.6.1) rack-ssl (1.3.4) rack-test (0.6.3) rails (5.0.0.1, 4.2.6) rails-deprecated_sanitizer (1.0. rails-dom-testing (2.0.1, 1.0.7) rails-html-sanitizer (1.0.3) railties (5.0.0.1, 4.2.6, 3.2.22 rake (11.2.2, default: 10.4.2) rdoc (4.2.2, default: 4.2.0, 3.1 rubygems-update (2.6.8) sass (3.4.22, 3.1.21) sass-rails (5.0.6, 3.2.0) sdoc (0.4.1) spring (1.7.2) sprockets (3.7.0, 2.2.3) sprockets-rails (3.2.0) sqlite3 (1.3.11 x64-mingw32) test-unit (3.0.8) thor (0.19.1) thread_safe (0.3.5) tilt (2.0.5, 1.4.1) turbolinks (5.0.1) turbolinks-source (5.0.0) tzinfo (1.2.2) tzinfo-data (1.2016.6) uglifier (3.0.2) web-console (3.3.1, 2.3.0) websocket-driver (0.6.4) websocket-extensions (0.1.2)

+0

질문에 Gemfile을 추가 할 수 있습니까? 'gem list'도'bootstrap-sass'가 실제로 존재한다는 온전한 체크처럼 말하십시오. – David

답변

2

"부트 스트랩-스프로킷"@Import 첨가 한 후.; @import "부트 스트랩"; application.scss 파일에서 모든 * = require_self W * = require_tree를 제거하십시오. sass 파일의 명령문.

+0

제거했지만 여전히 작동하지 않습니다. – xiaolongbao

+0

이 프로세스는 저의 mac 환경에서 작동합니다. – tanvir002700

관련 문제