You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I try to install glueby in ruby-3.3.0 + rails 7.2.2.1 on Docker compose.
but happend error below:
root@00335676e899:/myapp# rails glueby:contract:install
bin/rails aborted!
NameError: uninitialized constant Rails::Generators (NameError)
Rails::Generators.invoke("glueby:contract:initializer")
^^^^^^^^^^^^
Did you mean? Enumerator
Tasks: TOP => glueby:contract:install
(See full trace by running task with --trace)
What I've tried
I solved it that added require "rails:generater" in config/application.rb, like below:
require_relative "boot"
require "rails/all"
require 'rails/generators' # added this line
# Require the gems listed in Gemfile, including any gems
# you've limited to :test, :development, or :production.
Expected Action
If above solution is correct, please add it to README.md.
Otherwise tell me correct solution.
Description
I try to install glueby in ruby-3.3.0 + rails 7.2.2.1 on Docker compose.
but happend error below:
What I've tried
I solved it that added
require "rails:generater"
in config/application.rb, like below:Expected Action
If above solution is correct, please add it to README.md.
Otherwise tell me correct solution.
Environment Information
ruby version
ruby 3.3.0 (2023-12-25 revision 5124f9ac75) [x86_64-linux]
Gemfile.lock
The text was updated successfully, but these errors were encountered: