Reputation: 21
I'm new to Ruby and Rails... I'm following the Ruby on Rails tutorial and when I create a new project from chapter 3, I get this error:
$ rails -v
Rails 7.2.2.1
$ rails 7.0.4 new sample_app --skip-bundle
~/.rbenv/versions/3.1.6/lib/ruby/gems/3.1.0/gems/activesupport-7.0.4/lib/active_support/logger_thread_safe_level.rb:12:in `<module:LoggerThreadSafeLevel>': uninitialized constant ActiveSupport::LoggerThreadSafeLevel::Logger (NameError)
Logger::Severity.constants.each do |severity|
^^^^^^
I read about how to edit GEM file to work around this issue, but in this case I do not have a GEM file, I am creating a NEW rails project -- and that's failing.
I read something about the concurrent-ruby gem, but again, this is a new project without GEM file.
Upvotes: 2
Views: 2028
Reputation: 1
Before installing new project just use this 2 console commands:
gem uninstall concurrent-ruby
gem install concurrent-ruby -v 1.3.4
Then u can easily install your new project and add specific version of this gem in Gemfile.
Upvotes: 0
Reputation: 41
As @dbugger mentioned above, this relates to concurrent-ruby gem. You can specify this in Gemfile, then bundle again and it should work
gem 'concurrent-ruby', '1.3.4'
Upvotes: 1