rails生成ckeditor:install无法加载生成器



我添加到Gemfile

gem 'ckeditor'

我还试着添加

gem 'ckeditor', :git => 'git://github.com/galetahub/ckeditor.git'

gem 'ckeditor', :git => 'git://github.com/galetahub/ckeditor.git', :branch =>'rails3'

捆绑包安装已成功完成,但当我在项目目录中调用命令时

rails g ckeditor:install --orm=active_record --backend=paperclip

我得到以下响应

[警告]无法加载生成器"generators/ceditor/install_generator"。错误:未初始化常量Ckeditor::Rails::Generators。/home/boberobor/.rvm/gems/ruby-1.9.3-p392/bundler/gems/ceditor-6d8032b87595/lib/generator/ceditor/install_generator.rb:6:在<module:Generators>' /home/boberobor/.rvm/gems/ruby-1.9.3-p392/bundler/gems/ckeditor-6d8032b87595/lib/generators/ckeditor/install_generator.rb:5:in'中/home/boberobor/.rvm/gems/ruby-1.9.3-p392/bundler/gems/ceditor-6d8032b87595/lib/generator/ceditor/install_generator.rb:4:在查找中的<top (required)>' /home/boberobor/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.13/lib/rails/generators.rb:300:in块(2级(中/home/boberobor/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.213/lib/rails/generators.rb:296:在查找中的each' /home/boberobor/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.13/lib/rails/generators.rb:296:in块中'/home/boberobor/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.213/lib/rails/generators.rb:295:在each' /home/boberobor/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.13/lib/rails/generators.rb:295:in查找中'/home/boberobor/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.213/lib/rails/generators.rb:152:在find_by_namespace' /home/boberobor/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.13/lib/rails/generators.rb:169:in调用中'/home/boberobor/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.213/lib/rails/commands/generate.rb:12:在<top (required)>' /home/boberobor/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.13/lib/rails/commands.rb:29:in'中脚本/轨道:6:在require' script/rails:6:in'中找不到生成器ckeditor:install。

那是什么?

我解决了它。问题在Gemfile中。有

gem 'rails-ckeditor'

也许,有任何冲突。我删除了这一行,运行捆绑包并执行生成器。

相关内容

  • 没有找到相关文章

最新更新