Eagle1
Eagle1

Reputation: 13

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.

Thanks.

Upvotes: 1

Views: 535

Answers (1)

Ariejan
Ariejan

Reputation: 11079

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.

Upvotes: 1

Related Questions