I am trying to set up Rails app with Twitter Bootstrap (the gem twitter-bootstrap-rails
), but I still cannot get over the error
File to import not found or unreadable: twitter/bootstrap.
I found this issue on official Github of the gem, but none of solution from there have worked for me. Here's my setup: Gemfile
gem "twitter-bootstrap-rails"
gem 'font-awesome-rails'
gem 'sass-rails', '~> 3.2.3'
group :assets do
#gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'
gem 'therubyracer', :platforms => :ruby
gem 'uglifier', '>= 1.0.3'
end
application.css
*= require_self
*= require bootstrap_and_overrides
*= require font-awesome
*= require_tree .
bootstrap_and_overrides.css.sass
@import "twitter/bootstrap";
@import "twitter/bootstrap/bootstrap";
@import "twitter/bootstrap/responsive";
// Font Awesome
@import "fontawesome";
// Glyphicons
@import "twitter/bootstrap/sprites.scss";
What am I missing for correct set up?
Thanks
rails generate bootstrap:install
? – Gertiegertrudrails generate bootstrap:install
, but it didn't help me. – Piaculargem 'less-rails'
. Finally, I have a require in the application.js//= require twitter/bootstrap
. One thing I do not have, is@import "twitter/bootstrap";
– Gertiegertrudgem 'twitter-bootstrap-rails', '~> 2.0.1.0'
, then it's working. But there is occurring another issue - the old javascript. – Piacular