开发者

Rails - Using Paperclip with no model?

开发者 https://www.devze.com 2023-01-26 04:30 出处:网络
is it possible to use Paperclip without a model? I just need the ability for an admin user to upload a pdf to a specific dir and that pdf can be overwritten when a more current pdf is uploaded.

is it possible to use Paperclip without a model? I just need the ability for an admin user to upload a pdf to a specific dir and that pdf can be overwritten when a more current pdf is uploaded.

I'm on rails 2.3.5.开发者_如何学Python

Thanks.


What's the problem with introducting a PDF model to use? It's easy enough.

If you don't want that model, then don't use paperclip and save the attachments yourself, they come in as instances of TempFile.

0

精彩评论

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