前提・実現したいこと
Railsアプリを作成したいのですが、
"rails g controller users index show" を実行すると
エラーが発生します。
rails new で、自動生成はできているようです。
原因と対応策を教えていただけますでしょうか。
ファイル名は"myapp"
参照サイト:https://openbook4.me/projects/92/sections/488
発生している問題・エラーメッセージ
$ rails g controller users index show C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/bundler-2.0.1/lib/bundler/spec_set.rb:87:in `block in materialize': Could not find sqlite3-1.3.13-x64-mingw32 in any of the sources (Bundler::GemNotFound) from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/bundler-2.0.1/lib/bundler/spec_set.rb:81:in `map!' from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/bundler-2.0.1/lib/bundler/spec_set.rb:81:in `materialize' from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/bundler-2.0.1/lib/bundler/definition.rb:170:in `specs' from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/bundler-2.0.1/lib/bundler/definition.rb:237:in `specs_for' from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/bundler-2.0.1/lib/bundler/definition.rb:226:in `requested_specs' from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/bundler-2.0.1/lib/bundler/runtime.rb:108:in `block in definition_method' from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/bundler-2.0.1/lib/bundler/runtime.rb:20:in `setup' from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/bundler-2.0.1/lib/bundler.rb:107:in `setup' from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/bundler-2.0.1/lib/bundler/setup.rb:20:in `<top (required)>' from C:/Ruby25-x64/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:135:in `require' from C:/Ruby25-x64/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:135:in `rescue in require' from C:/Ruby25-x64/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:39:in `require' from C:/Users/airi/desktop/github/ruby_lesson/myapp/config/boot.rb:3:in `<top (required)>' from bin/rails:3:in `require_relative' from bin/rails:3:in `<main>'
該当のソースコード
user-PC MINGW64 ~/desktop/github/ruby_lesson/myapp (master) $ rails g controller users index show
試したこと
・rubyの保存場所がおかしいのかと思い、binに移動 → エラー
・sqlite3をアンインストール、再インストール → エラー
補足情報(FW/ツールのバージョンなど)
$ ruby バージョン
ruby 2.5.3p105 (2018-10-18 revision 65156) [x64-mingw32]
$ 自動生成ファイル
user-PC MINGW64 ~/desktop/github/ruby_lesson/myapp (master)
$ ls
app/ config.ru Gemfile.lock package.json README.md tmp/
bin/ db/ lib/ public/ storage/ vendor/
config/ Gemfile log/ Rakefile test/
$ WindowsでGit Bash利用
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/01/06 00:24 編集
2019/01/06 01:27
2019/01/06 04:21
2019/01/06 05:10
2019/01/06 09:29