Closed vilinicz closed 3 weeks ago
@vilinicz Got the same issue, found that if I prepend the lib/motor/tasks/motor.rake
file with require statement line:
require 'rails/generators'
namespace :motor do
# ...
end
then it works again for me. Would you confirm if that works for you?
@w-zygmuntowicz You can use the command as explained in the gemspec https://github.com/motor-admin/motor-admin-rails/blob/master/motor-admin.gemspec#L43
rails g motor:install && rake db:migrate
@DriesS Hi that's the issue here, the command rails g motor:install
fails with error NameError: uninitialized constant Rails::Generators (NameError)
. Just make sure you're running the versions specified in the issue description
@DriesS Hi that's the issue here, the command
rails g motor:install
fails with errorNameError: uninitialized constant Rails::Generators (NameError)
. Just make sure you're running the versions specified in the issue description
You are using rails motor:install
, but you should use rails generate motor:install
Wow It works, I didn't know that! :)
On the other hand, wouldn't it be nice if it work with both commands with or without generator
part?
If not, then we should update the README.md, because it instructs to run rails motor:install
without the generate
part
Rails 7.2 Ruby 3.3.3 motor-admin 0.4.28
Rake task
rails motor:install
fails with error:steps to reproduce:
I also tried to run it with
bundle exec rake motor:install
but result is the same.