おそらくgemが原因かと思うのですが、どうしてもうまく行かないので助けていただきたいと思います。
Gemfile
source 'https://rubygems.org'
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
ruby '2.6.4'
gem 'rails', '> 6.0.2', '>= 6.0.2.2'> 4.1'
gem 'pg', '>= 0.18', '< 2.0'
gem 'puma', '
gem 'sass-rails', '>= 6'
gem 'webpacker', '> 4.0'> 5'
gem 'turbolinks', '
gem 'jbuilder', '~> 2.7'
gem 'bootsnap', '>= 1.4.2', require: false
gem 'bcrypt'
gem "rails-i18n"
gem "kaminari"
gem "valid_email2"
gem "nokogiri"
group :development, :test do
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
end
group :development do
gem 'web-console', '>= 3.3.0'
gem 'listen', '>= 3.0.5', '< 3.2'
gem 'spring'
gem 'spring-watcher-listen', '~> 2.0.0'
end
group :test do
gem 'capybara', '>= 2.15'
gem 'selenium-webdriver'
gem 'webdrivers'
gem "rspec-rails"
gem "factory_bot_rails"
end
エラーコード
bash-4.4$ bin/rails s -b 0.0.0.0
Traceback (most recent call last):
41: from bin/rails:3:in <main>' 40: from bin/rails:3:in
load'
39: from /apps/baukis2/bin/spring:15:in <top (required)>' 38: from /usr/local/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in
require'
37: from /usr/local/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in require' 36: from /usr/local/bundle/gems/spring-2.1.0/lib/spring/binstub.rb:11:in
<top (required)>'
35: from /usr/local/bundle/gems/spring-2.1.0/lib/spring/binstub.rb:11:in load' 34: from /usr/local/bundle/gems/spring-2.1.0/bin/spring:49:in
<top (required)>'
33: from /usr/local/bundle/gems/spring-2.1.0/lib/spring/client.rb:30:in run' 32: from /usr/local/bundle/gems/spring-2.1.0/lib/spring/client/command.rb:7:in
call'
31: from /usr/local/bundle/gems/spring-2.1.0/lib/spring/client/rails.rb:28:in call' 30: from /usr/local/bundle/gems/spring-2.1.0/lib/spring/client/rails.rb:28:in
load'
29: from /apps/baukis2/bin/rails:9:in <top (required)>' 28: from /usr/local/bundle/gems/activesupport-6.0.2.2/lib/active_support/dependencies.rb:325:in
require'
27: from /usr/local/bundle/gems/activesupport-6.0.2.2/lib/active_support/dependencies.rb:291:in load_dependency' 26: from /usr/local/bundle/gems/activesupport-6.0.2.2/lib/active_support/dependencies.rb:325:in
block in require'
25: from /usr/local/bundle/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in require' 24: from /usr/local/bundle/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in
require_with_bootsnap_lfi'
23: from /usr/local/bundle/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in register' 22: from /usr/local/bundle/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in
block in require_with_bootsnap_lfi'
21: from /usr/local/bundle/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in require' 20: from /usr/local/bundle/gems/railties-6.0.2.2/lib/rails/commands.rb:18:in
<main>'
19: from /usr/local/bundle/gems/railties-6.0.2.2/lib/rails/command.rb:46:in invoke' 18: from /usr/local/bundle/gems/railties-6.0.2.2/lib/rails/command/base.rb:69:in
perform'
17: from /usr/local/bundle/gems/thor-1.0.1/lib/thor.rb:392:in dispatch' 16: from /usr/local/bundle/gems/thor-1.0.1/lib/thor/invocation.rb:127:in
invoke_command'
15: from /usr/local/bundle/gems/thor-1.0.1/lib/thor/command.rb:27:in run' 14: from /usr/local/bundle/gems/railties-6.0.2.2/lib/rails/commands/server/server_command.rb:138:in
perform'
13: from /usr/local/bundle/gems/railties-6.0.2.2/lib/rails/commands/server/server_command.rb:138:in tap' 12: from /usr/local/bundle/gems/railties-6.0.2.2/lib/rails/commands/server/server_command.rb:141:in
block in perform'
11: from /usr/local/bundle/gems/activesupport-6.0.2.2/lib/active_support/dependencies.rb:325:in require' 10: from /usr/local/bundle/gems/activesupport-6.0.2.2/lib/active_support/dependencies.rb:291:in
load_dependency'
9: from /usr/local/bundle/gems/activesupport-6.0.2.2/lib/active_support/dependencies.rb:325:in block in require' 8: from /usr/local/bundle/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in
require'
7: from /usr/local/bundle/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in require_with_bootsnap_lfi' 6: from /usr/local/bundle/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in
register'
5: from /usr/local/bundle/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in block in require_with_bootsnap_lfi' 4: from /usr/local/bundle/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in
require'
3: from /apps/baukis2/config/application.rb:9:in <main>' 2: from /apps/baukis2/config/application.rb:10:in
module:Baukis2'
1: from /apps/baukis2/config/application.rb:14:in <class:Application>' /usr/local/bundle/gems/railties-6.0.2.2/lib/rails/railtie/configuration.rb:97:in
method_missing': undefined method `time' for #Rails::Application::Configuration:0x000055cb196d4b58 (NoMethodError)
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。