Rails 3 CKEDITOR:未找到回形针命令

发布于 2024-11-15 08:54:39 字数 883 浏览 3 评论 0原文

在 Rails 3 上使用 CKEditor + Paperclip 时,通过所见即所得编辑器上传图像时收到此错误消息:

Started POST "/ckeditor/pictures?CKEditor=question%5Banswers_attributes%5D%5B0%5D_body_editor&CKEditorFuncNum=2&langCode=en" 127.0.0.1 位于2011-06-11 18:11:58-0500 由 Ckeditor::PicturesController#create as HTML 处理 参数:{"upload"=>#>, "CKEditor"=>"question[answers_attributes][0]_body_editor", "CKEditorFuncNum"=>"2", "langCode"=>"en"} [回形针]识别-格式%wx%h'/var/folders/11/114evplqEWuTFgn6byOUQE+++TI/-Tmp-/stream20110611-1900-1hpvz8i.gif[0]'2>/dev/null [回形针] 处理时收到错误:# [回形针]识别-格式%wx%h'/var/folders/11/114evplqEWuTFgn6byOUQE+++TI/-Tmp-/stream20110611-1900-1hpvz8i.gif[0]'2>/dev/null [回形针] 处理时收到错误:# 用户负载 (1.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY last_name ASC LIMIT 1 渲染文本模板(0.0ms) 在 214 毫秒内完成 200 OK(查看次数:0.9 毫秒 | ActiveRecord:1.2 毫秒)

这是回形针错误还是?

When using CKEditor + Paperclip on rails 3 I get this error message when uploading an image via the wysiwyg editor:

Started POST "/ckeditor/pictures?CKEditor=question%5Banswers_attributes%5D%5B0%5D_body_editor&CKEditorFuncNum=2&langCode=en" for 127.0.0.1 at 2011-06-11 18:11:58 -0500
Processing by Ckeditor::PicturesController#create as HTML
Parameters: {"upload"=>#>, "CKEditor"=>"question[answers_attributes][0]_body_editor", "CKEditorFuncNum"=>"2", "langCode"=>"en"}
[paperclip] identify -format %wx%h '/var/folders/11/114evplqEWuTFgn6byOUQE+++TI/-Tmp-/stream20110611-1900-1hpvz8i.gif[0]' 2>/dev/null
[paperclip] An error was received while processing: #
[paperclip] identify -format %wx%h '/var/folders/11/114evplqEWuTFgn6byOUQE+++TI/-Tmp-/stream20110611-1900-1hpvz8i.gif[0]' 2>/dev/null
[paperclip] An error was received while processing: #
User Load (1.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY last_name ASC LIMIT 1
Rendered text template (0.0ms)
Completed 200 OK in 214ms (Views: 0.9ms | ActiveRecord: 1.2ms)

Is this a error with paperclip or?

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

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

发布评论

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

评论(1

∞琼窗梦回ˉ 2024-11-22 08:54:39

是否已安装识别(image magick)并在您的应用程序的路径中?

(发布所以问题不会出现在未回答的列表中)

编辑:忘记提及这可能需要进入环境/*.rb:

Paperclip.options[:command_path] = "/usr/local/bin" # or path to wherever identify is located.

Is identify installed (image magick) and in the PATH for your application?

(posting so question doesn't appear in unanswered list)

Edit: Forgot to mention this might need to go in environments/*.rb:

Paperclip.options[:command_path] = "/usr/local/bin" # or path to wherever identify is located.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文