Should I use a gem like paperclip or carrierwave to handle PDF and docx uploads?
has anyone advice on this one? Are there maybe better ways to handle document uploads in rails?
Yep, you can upload any file type you want with Paperclip, Carrierwave, or Shrine. I like Shrine the most personally, it's nice and modular so that's what I'd personally recommend using.
I am pretty happy with Carrierwave, and I wrote a step_by_step guide: https://medium.com/@mauddev/rails-5-and-carrierwave-53960ec20c4b#.zhy8ybjbp
I did not try Shrine, yet. That looks good too.
Dont forget the Shrie videos Chris made, i found them really handy. And i would go with this over CarrierWave now personally.
First one is here https://gorails.com/episodes/file-uploading-with-shrine