Regarding Uploading & Editing & Saving Docments In a Rails Application !

Hi, i am working on Application ! I am uploading Word Document with Paperclip to the application.File is saved in **Public/. I want edit that document in a Rails Application.**I want save it back to application. Is there chance to do this ? What are gems are helpful for this integration.

Thanks, Sai