我在github SammyLin/redactor-rails 的官方页面上安装了红宝石红宝石,这一切都很好,但是当我试图上传图片时,我有这样的错误:
开始发布"/redactor_rails /redactor_rails for 127.0.0.1在2013-07-17 20:34:34 +0400由RedactorRails::PicturesController#create作为RedactorRails::PicturesController#create参数:{"file"=>#>,"authenticity_token"=>"aRAR6p4FMDNmdh/gqP24kYSIo0CWXjnEgYGBli/jcX8="}用户加载(0.3ms)从“用户”中选择“用户”.*。
MiniMagick:Error(命令(“/home/igor/rubycode/badm.by/public/uploads/tmp/1374078874-9075-4230/_________2013-05-19_22_58_40.png") -quiet -ping -format %wn failed:{:status_code=>127,:output=>"sh: 1:标识: not \n”}):
请解释我为什么有这个错误,我谷歌我没有发现这个错误。
发布于 2013-07-20 02:43:40
我也有过同样的问题。只需在系统上安装ImageMagick包即可。
例如对于Ubuntu,
sudo apt-get install imagemagick发布于 2013-07-16 17:47:02
你用的是什么上传器?我建议你使用航母宝石,以下是它的建议:
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:migratehttps://stackoverflow.com/questions/17683481
复制相似问题