开发者

CarrierWave and MySQL

How would you install carrierwave and mysql together, I can't find anything in the documentation. The only way I can see is to install paperclip, then migrate to carrierwave.

UPDATE: To be more specific, store开发者_开发技巧 the image in a BLOB in the database.


if you include RMagick, you can use the to_blob method that it provides: http://studio.imagemagick.org/RMagick/doc/image3.html#to_blob


What problems are you encountering?

You need to have both carrierwave and mysql in your gemfile and bundled - did you follow the tutorial here

Follow the intructions to create uploader, create a migration to add an image string to your model and you'll be all fine.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜