I am using the following technologies:
My goal is to make a simple controller which implements the following functions:
I have searched for gems that can help me to achieve that and have the following questions:
Has anyone done something like this and could you point me in the right direction?
I haven't ever done most of the things in your requirements, but I work quite heavily with a text parser that converts MS Word documents into XML documents. Perhaps I can at least get you started in the right direction for that.
We use a Java library called POI, by Apache that makes the DOC -> XML conversion a simple process. Since you're using JRuby, I'd imagine it'll be much easier for you to integrate it into your project since we're using MRI Ruby. That was a PITA because we had to include lots of bridges and other junk just to be able to use the .jar files.
Personally, I've used the Carrierwave gem to handle file uploading. It's a snap to upload files & attach them to models. You simply use the Carrierwave generator to generate an Uploader
class that attaches to a field in a model, configure it to store & process the file based on your specifications, and PROFIT! The docs are great, but I'm happy to help you if you need it. If you need multi-file uploading, I explained in detail about how I accomplished it in a different SO post.
Hope that helps!