Cannot start bootsrap: could not find file "bootstrap-sprockets" with type "application / javascript"

You are having trouble installing bootstrap on my rails project.

howing / Users / muhname / Photogur / app / views / layouts / application.html.erb, where line # 10 is raised:

could not find file "bootstrap-sprockets" with type "application / javascript"

my application.js file:

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

my css:

 / *= require bootstrap_and_overrides / *= require_tree . / *= require_self / /* @import "bootstrap" 

gem: 'bootstrap-sass', '3.0.2.1'

Anyone who can know what the problem is? thanks!

+5
source share
2 answers

Try removing boot stars from application.js application. He should not be there, and he is creating a mistake.

 //= require jquery //= require jquery_ujs //= require bootstrap //= require turbolinks //= require_tree . 
+7
source

I had the same problem:

could not find file 'bootstrap-sprockets' with type' Application / JavaScript

The only solution was to comment:

 # gem 'sass-rails', '~> 5.0' 

And add instead:

 gem 'sass-rails', '>= 3.2' 

At Gemfile I hope this helps other contributors.

+1
source

All Articles