samedi 5 juillet 2014

Ruby on Rails importing bootstrap not found


Vote count:

0




I am a novice in programming RoR. Currently I am going through the Michael Hartl, "Ruby on Rails Tutorial". I have been stuck on this problem for the past day or so.


In apps/assets/stylesheets I have a file called custom.css.scss. In this file i have one line:



@import "bootstrap";


however I am getting an error:



Failure/Error: visit '/static_pages/about'
ActionView::Template::Error:
File to import not found or unreadable: bootstrap.
Load paths:

/Users/me/rails_projects/sample_app
/Users/me/rails_projects/vendor/assets/stylesheets
(in /Users/me/rails_projects/sample_app/app/assets/stylesheets/application.css)


In my Gemfile I have:



source 'https://rubygems.org'
ruby '2.1.0'
#ruby-gemset=railstutorial_rails_4_0

gem 'rails', '4.0.5'
gem 'bootstrap-sass', '2.3.0.1'
gem 'sprockets', '2.12.1'

group :development, :test do
gem 'sqlite3', '1.3.8'
gem 'rspec-rails', '2.13.1'
end

group :test do
gem 'selenium-webdriver', '2.35.1'
gem 'capybara', '2.1.0'
end

gem 'sass-rails', '4.0.1'
gem 'uglifier', '2.1.1'
gem 'coffee-rails', '4.0.1'
gem 'jquery-rails', '3.0.4'
gem 'turbolinks', '1.1.1'
gem 'jbuilder', '1.0.2'

group :doc do
gem 'sdoc', '0.3.20', require: false
end

group :production do
gem 'pg', '0.15.1'
gem 'rails_12factor', '0.0.2'
end


I have looked at a lot of other posts on how to resolve similar issues, but to no avail.


Thanks in advance for any help!



asked 59 secs ago






Aucun commentaire:

Enregistrer un commentaire