Run Ubuntu Server in text-only mode (reducing the amount of RAM allocated to the VM) and set up to ssh into it.
Then run RubyMine from Windows.
Make a work directory on Ubuntu that has the same branch checked out as your Windows work directory.
Then set up RubyMine: Tools -> Deployment -> Configuration... and set up remote rsync with automatic update of remote files from Windows.
Any file you change on Windows will automatically sync to Linux. You only need a script running on Linux to live update/restart your app on file changes.
I do a version of this for Ruby/Rails development with a cloud VM instance from Mac RubyMine editing machine.