我正在更新我编写的生成器的代码,但到目前为止一直运行良好。
当我简单地拒绝命令时
bundle exec rails g
我收到以下错误
/Users/mpierc200/projects/prototype_conflux/vendor/gems/itrc_client_files_generator-1.0.13/lib/itrc_client_files_generator.rb:6:in `<top (required)>':
uninitialized constant Rails::Generators (NameError)
违规行是
class ItrcClientFilesGenerator < Rails::Generators::Base
我的 Rails 版本是
Rails 3.1.9
红宝石版本是
ruby 1.9.3p194