I installed your gem, no errors.
Then I included //= require bootstrap-switch on application.js, as you instructed, and my rails app stopped working saying: "couldn't find file 'bootstrap-switch' (in .../app/assets/javascripts/application.js:17)
A similar error shows up if I make a similar edit on application.css.
Why can't rails find the files? Shouldn't the gem take care of it?
After I @import "bootstrap2-switch" I get this:
File to import not found or unreadable: bootstrap2-switch.
Load paths:
/home/.../Documents/.../app/assets/images
/home/.../Documents/.../app/assets/javascripts
/home/.../Documents/.../app/assets/stylesheets
/home/.../Documents/.../vendor/assets/javascripts
/home/.../Documents/.../vendor/assets/stylesheets
/home/.../.rvm/gems/ruby-2.1.0@railstutorial_rails_4_0/gems/turbolinks-1.1.1/lib/assets/javascripts
/home/.../.rvm/gems/ruby-2.1.0@railstutorial_rails_4_0/gems/jquery-rails-3.0.4/vendor/assets/javascripts
/home/.../.rvm/gems/ruby-2.1.0@railstutorial_rails_4_0/gems/coffee-rails-4.0.1/lib/assets/javascripts
/home/.../.rvm/gems/ruby-2.1.0@railstutorial_rails_4_0/gems/font-awesome-rails-4.0.3.1/app/assets/fonts
/home/.../.rvm/gems/ruby-2.1.0@railstutorial_rails_4_0/gems/font-awesome-rails-4.0.3.1/app/assets/stylesheets
/home/.../.rvm/gems/ruby-2.1.0@railstutorial_rails_4_0/gems/bootstrap-sass-2.3.2.0/vendor/assets/images
/home/.../.rvm/gems/ruby-2.1.0@railstutorial_rails_4_0/gems/bootstrap-sass-2.3.2.0/vendor/assets/javascripts
/home/.../.rvm/gems/ruby-2.1.0@railstutorial_rails_4_0/gems/bootstrap-sass-2.3.2.0/vendor/assets/stylesheets
/home/.../Documents/rails_projects/vendor/assets/stylesheets
Switch's folder is not even listed... however bundle show bootstrap-switch-rails returns /home/.../.rvm/gems/ruby-2.1.0@railstutorial_rails_4_0/gems/bootstrap-switch-rails-2.0.2, so it is installed.
I installed your gem, no errors. Then I included
//= require bootstrap-switch
onapplication.js
, as you instructed, and my rails app stopped working saying:"couldn't find file 'bootstrap-switch' (in .../app/assets/javascripts/application.js:17)
A similar error shows up if I make a similar edit onapplication.css
.Why can't rails find the files? Shouldn't the gem take care of it?
After I
@import "bootstrap2-switch"
I get this:Switch's folder is not even listed... however
bundle show bootstrap-switch-rails
returns/home/.../.rvm/gems/ruby-2.1.0@railstutorial_rails_4_0/gems/bootstrap-switch-rails-2.0.2
, so it is installed.