2016-06-23 2 views
0

내 테이블에 기사를 만들려고합니다. 튜토리얼에서 whats를 따라 명령을 작성하라는 지시를 받았고, 레일스가 create_articles를 생성하고, 이 오류 메시지가 나타납니다. 그룹 그룹, 개발, 테스트 및 생산의 보석은 설치되지 않았습니다.그룹 그룹, 개발, 테스트 및 프로덕션의 보석이 설치되지 않았습니다.

bundle install 

을 그래서, 후 아래

당신이 당신의 프로젝트 폴더에서 다음 명령을 실행해야 당신의 Gemfile에 나와있는 보석을 설치하려면 내 gemfile 소스 ' https://rubygems.org'

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' 
gem 'rails', '4.2.5.1' 
# Use sqlite3 as the database for Active Record 

# Use SCSS for stylesheets 
gem 'sass-rails', '~> 5.0' 
# Use Uglifier as compressor for JavaScript assets 
gem 'uglifier', '>= 1.3.0' 
# Use CoffeeScript for .coffee assets and views 
gem 'coffee-rails', '~> 4.1.0' 
# See https://github.com/rails/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 

# Use ActiveModel has_secure_password 
# gem 'bcrypt', '~> 3.1.7' 

# Use Unicorn as the app server 
# gem 'unicorn' 

# Use Capistrano for deployment 
# gem 'capistrano-rails', group: :development 

group :development, :test do 

    # Call 'byebug' anywhere in the code to stop execution and get a debugger console 
    gem 'byebug' 
end 

group :development do 
    # Access an IRB console on exception pages or by using <%= console %> in views 
    gem 'web-console', '~> 2.0' 

    # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring 
    gem 'spring' 
end 

group :production do 
gem 'pg' 
gem 'rails_12factor' 
end 
+0

번들 설치를 실행 했습니까? –

답변

1

입니다 레일 생성기를 실행할 수 있습니다 :

rails g [model/controller/migration...] 
0

그룹은 개발, 테스트 및 프로덕션 환경에서 해당 그룹에 나열된 보석을 설치합니다.

보석이 개발에만 표시되어있는 경우 해당 보석은 테스트 또는 프로덕션에 설치되지 않습니다.