开发者

Rails - Using Paperclip with no model?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜