Ruby チュートリアル (Michael Hartl) の本に従おうとしています。Gemfile:41 でこのエラーが発生します (数ステップ前は Gemfile:35 でした):
Franciscos-MacBook-Pro:first_app franciscomello$ bundle install --without production
Undefined local variable or method `rb' for Gemfile
from /Users/franciscomello/Desktop/Aptana Studio 3 Workspace/First_app/Gemfile:41
私は多くのヒントを試しました。たとえば、サンドボックスの正しい出力があります。
Franciscos-MacBook-Pro:first_app franciscomello$ which ruby irb gem rake
/usr/bin/ruby
/usr/bin/irb
/usr/bin/gem
/usr/bin/rake
既に Gemfile をデバッグしており、次のようになっています。
source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.0.0'
# Use sqlite3 as the database for Active Record
gem 'sqlite3', '1.3.8'
# Use SCSS for stylesheets
gem 'sass-rails', '4.0.0'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '2.1.1'
# Use CoffeeScript for .js.coffee assets and views
gem 'coffee-rails', '4.0.1'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby
# Use jquery as the JavaScript library
gem 'jquery-rails', '3.0.4'
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
gem 'turbolinks', '1.1.1'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '1.0.2'
group :doc do
# bundle exec rake doc:rails generates the API under doc/api.
gem 'sdoc','0.3.20', require: false
end
group :production do
gem 'pg', '0.15.1'
gem 'rails_12factor', '0.0.2'
end
#sugestao do Tutorial
gem rb-readline