rails3 paperclip一些报错到处理方法

rails3 paperclip在上传图片后报错:

Paperclip::CommandNotFoundError

is not recognized by the 'identify' command.

等是因为指向目录不对导致到

解决方法是
$ which identify
/some/path/to/identify

修改config/environments/development.rb
Paperclip.options[:command_path] = "/some/path/to"

你可能感兴趣的:(Paperclip)