実現したいこと
rails g controller usersrコマンドを入力時、
users_controllerを作成したいです。
発生している問題・エラーメッセージ
usersコントローラが作成されない
kuronekonoMacBook-puro:crud_sample kuroneko$ rails g controller users /Users/kuroneko/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/bundler-2.0.1/lib/bundler/rubygems_integration.rb:408:in `block (2 levels) in replace_gem': Error loading the 'sqlite3' Active Record adapter. Missing a gem it depends on? can't activate sqlite3 (~> 1.3.6), already activated sqlite3-1.4.0. Make sure all dependencies are added to Gemfile. (LoadError)kuronekonoMacBook-puro:crud_sample kuroneko$
調べたこと
Gemファイルの中の記述がおかしい?ことまでは
わかったのですがどこをどう書き換えたらいいのか
困っています。
補足情報(ツールのバージョン)
Rails 5.2.2
Gemファイルの中身
source
1git_source(:github) { |repo| "https://github.com/#{repo}.git" } 2 3ruby '2.4.1' 4 5# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' 6gem 'rails', '~> 5.2.2' 7# Use sqlite3 as the database for Active Record 8 9gem 'sqlite3' 10# Use Puma as the app server 11 12 13gem 'puma', '~> 3.11' 14# Use SCSS for stylesheets 15gem 'sass-rails', '~> 5.0' 16# Use Uglifier as compressor for JavaScript assets 17gem 'uglifier', '>= 1.3.0' 18# See https://github.com/rails/execjs#readme for more supported runtimes 19# gem 'mini_racer', platforms: :ruby 20 21# Use CoffeeScript for .coffee assets and views 22gem 'coffee-rails', '~> 4.2' 23# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks 24gem 'turbolinks', '~> 5' 25# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder 26gem 'jbuilder', '~> 2.5' 27# Use Redis adapter to run Action Cable in production 28# gem 'redis', '~> 4.0' 29# Use ActiveModel has_secure_password 30# gem 'bcrypt', '~> 3.1.7' 31 32# Use ActiveStorage variant 33# gem 'mini_magick', '~> 4.8' 34 35# Use Capistrano for deployment 36# gem 'capistrano-rails', group: :development 37 38# Reduces boot times through caching; required in config/boot.rb 39gem 'bootsnap', '>= 1.1.0', require: false 40 41group :development, :test do 42 # Call 'byebug' anywhere in the code to stop execution and get a debugger console 43 gem 'byebug', platforms: [:mri, :mingw, :x64_mingw] 44end 45 46group :development do 47 # Access an interactive console on exception pages or by calling 'console' anywhere in the code. 48 gem 'web-console', '>= 3.3.0' 49 gem 'listen', '>= 3.0.5', '< 3.2' 50 # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring 51 gem 'spring' 52 gem 'spring-watcher-listen', '~> 2.0.0' 53end 54 55group :test do 56 # Adds support for Capybara system testing and selenium driver 57 gem 'capybara', '>= 2.15' 58 gem 'selenium-webdriver' 59 # Easy installation and use of chromedriver to run system tests with Chrome 60 gem 'chromedriver-helper' 61end 62 63# Windows does not include zoneinfo files, so bundle the tzinfo-data gem 64gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
どうかお力をお貸しください、
よろしくお願い致します。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/03/13 14:40