nicEdit image upload

Hi everyone

I am new in ROR. Recently, I want to integrate nicEdit to my
application. However, the default image upload functionality doesn't
support upload image to local server. How can I upload image to local
server with nicEdit?

thanks in advance
xiahong