未初始化的常量 Ckeditor::PLUGIN_CONTROLLER_PATH

发布于 2024-09-29 17:29:43 字数 210 浏览 0 评论 0原文

我尝试在我的应用程序中使用 ckeditor。我按照说明如何安装它,但是当我来到这一步时

$rails 生成 ckeditor:base

我收到此错误消息,未初始化常量 Ckeditor::PLUGIN_CONTROLLER_PATH,但我不知道如何解决它。有谁知道如何解决它?请。

I've try to use ckeditor in my apps. I followed instruction how to install it, but when I came to this step

$ rails generate ckeditor:base

I got this error message, uninitialized constant Ckeditor::PLUGIN_CONTROLLER_PATH, and I didn't know to solve it. Does any body know how to solve it? please.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

绻影浮沉 2024-10-06 17:29:43

我认为你的routes.rb 中有一些问题如果你使用的是Rails 3...我也遇到了同样的问题并解决了它。

如果您使用的是 Rails 3,则给出

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

gem 文件中的

I think there is some issue in your routes.rb If you are using Rails 3... I faced the same and solved it.

If you are using Rails 3 then give

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

inside in gem file and run 'bundle install'

め可乐爱微笑 2024-10-06 17:29:43

现在你想要:

gem 'ckeditor', :git => 'https://github.com/galetahub/ckeditor'
Rails 生成 ckeditor:install

这适用于 Rails 3.1

Nowadays you want to:

gem 'ckeditor', :git => 'https://github.com/galetahub/ckeditor'
rails generate ckeditor:install

This works for Rails 3.1

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文