我使用github SammyLin/redactor-rails 官方页面上的说明安装Redactor-rails ruby gem,一切正常,但是当我尝试上传图片时,我有这样的错误:
开始发布“/ redactor_rails / pictures?authenticity_token = aRAR6p4FMDNmdh%2FgqP24kYSIo0CWXjnEgYGBli%2FjcX8%3D”for 127.0.0.1 at 2013-07-17 20:34:34 +0400 由RedactorRails处理:: PicturesController#创建为HTML 参数:{“file”=>#>,“authenticity_token”=>“aRAR6p4FMDNmdh / gqP24kYSIo0CWXjnEgYGBli / jcX8 =”} 用户负载(0.3ms)SELECT“users”。* FROM“users”WHERE“users”。“id”= 134 LIMIT 1 在611ms完成500内部服务器错误
MiniMagick ::错误(命令(“识别-quiet -ping -format%wn /home/igor/rubycode/badm.by/public/uploads/tmp/1374078874-9075-4230/_ __ _ ____ _2013-05-19_22_58_40.png“)失败:{:status_code => 127,:output =>”sh:1:识别:不是发现\ n“}):
请解释一下,为什么我有这个错误,谷歌我没有发现这个错误。
答案 0 :(得分:6)
我有同样的问题。只需在您的系统上安装ImageMagick软件包即可。
e.g。对于Ubuntu,
sudo apt-get install imagemagick
答案 1 :(得分:0)
gem "carrierwave"
gem "mini_magick"
$ rails generate redactor:install
or
$ rails generate redactor:install --devise
# --devise option generate user_id attribute for asset(Picture, Document) models. For more details show Devise gem.
# Now, Pictures and Documents uploading available only for signed in users
# All uploaded files will stored with current user_id
# User will choose only own uploaded Pictures and Documents
$ rake db:migrate