Every example that I've seen for paperclip shows it being used with images, not with arbitrary files. Well, it works just fine with arbitrary files -- as long as the name of the model which houses your files is not "Attachment". That name somehow collides with "Paperclip:Attachment".

Something like "Medium" or "MyAttachment"will work fine. I'd be interested to know if "File" works, but I didn't try it for myself.

By AJ ONeal

If you loved this and want more like it, sign up!


Did I make your day?
Buy me a coffeeBuy me a coffee  

(you can learn about the bigger picture I'm working towards on my patreon page )