0
我正在做一個月的rails教程,遇到我似乎無法修復的小問題。我無法在這個簡單的網站上獲得一些引導程序的功能,因此認爲這是一個與未更新寶石有關的問題,我去了Bootstrap網站,我試圖更新它所說的寶石[寶石 '自舉薩斯', '〜> 3.1.1']所以Onemonth Rails教程gemfile不會讓我捆綁安裝
在我的寶石文件從我只是有
gem 'bootstrap-sass'
到
gem 'bootstrap-sass', '~> 3.1.1'
去也注意到了教程此代碼在寶石文件中
group :doc do
#bundle exec rake doc:rails generates the API under doc/api
gem 'sdoc', require: false
end
,所以我補充說,還有,安裝 捆綁,重新啓動服務器導軌是 並沒有解決問題,所以試圖要回什麼之前,得到了下面的錯誤..
You cannot specify the same gem twice with different version requirements.
You specified: sdoc (~> 0.4.0) and sdoc (>= 0)
繼承人什麼我的寶石文件現在看起來像,現在我試圖綁定安裝並推送到heroku,但這個錯誤信息不會讓我。下面
source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.1.0'
# Use sqlite3 as the database for Active Record
#gem 'sqlite3' #it told me i had 2 versions so i commented out for now
# Use SCSS for stylesheets
gem 'sass-rails', '~> 4.0.3'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# Use CoffeeScript for .js.coffee assets and views
gem 'coffee-rails', '~> 4.0.0'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby
# Use jquery as the JavaScript library
gem 'jquery-rails'
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
gem 'turbolinks'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.0'
# bundle exec rake doc:rails generates the API under doc/api.
gem 'sdoc', '~> 0.4.0', group: :doc
# Spring speeds up development by keeping your application running in the background.
Read
more: https://github.com/rails/spring
gem 'spring', group: :development
gem 'bootstrap-sass', '~> 3.1.1'
group :development, :test do
gem 'sqlite3'
end
group :production do
gem 'pg'
gem 'rails_12factor'
end
group :doc do
# bundle exec rake doc:rails generates the API under doc/api
gem 'sdoc', require: false
end
GEM文件應我剛纔讀從哈特爾Rails的書在引擎蓋下更好的理解?