I’m trying to attach multiple files to a comment model (currently with a has_many :attachments) using paperclip. It seems to be quite a lot of work and a bit fiddly for something that should be trivial. What’s the modern rails way of doing this, with scalability and security taken into account?
I’m trying to attach multiple files to a comment model (currently with a has_many
Share
I’d recommend using jQuery File Upload. It’s compatible with all browsers and doesn’t require any flash or whatever: only javascript.
Look in the wiki, there are tutorials. I made one for v3 and v4, and someone did the one for the latest version.