radiant

Paperclipped on Heroku?

旧街凉风 提交于 2019-12-21 04:07:31
问题 I was curious if anyone could get paperclipped working on Heroku without using S3. I'm assuming Heroku is a read-only system, but there must be some way to save images there. 回答1: You can't write to Heroku's file system, so no, there is no way to save images the way you want. Your options are using a service like S3, or storing them in the database. I recommend using S3, because databases are not optimized for file storage. It's worth reading Heroku's documentation on file uploads. 回答2: You

Prevent CKEditor filtering Radiant Tags (non-valid HTML tags)

流过昼夜 提交于 2019-12-12 01:34:06
问题 I'm using CKEditor with refinerycms (rails CMS) I've also added basic support for radius tags (they are the tags used in Radiant, another rails CMS) so I'm able to list some elements from the model in the page just inserting a code. The problem is that the radius tags mimic html: <r:product_listing category="products" list_as="grid"/> When using CKEditor to modify the page contents it thinks the radius tags are invalid HTML, which is correct and the expected behaviour, but I can't find the

Paperclipped on Heroku?

痴心易碎 提交于 2019-12-03 11:37:55
I was curious if anyone could get paperclipped working on Heroku without using S3. I'm assuming Heroku is a read-only system, but there must be some way to save images there. You can't write to Heroku's file system, so no, there is no way to save images the way you want. Your options are using a service like S3, or storing them in the database. I recommend using S3, because databases are not optimized for file storage. It's worth reading Heroku's documentation on file uploads . You may save images to the log and tmp directories. However, that's a horrible, horrible idea. If you git push heroku