I have been using rmate successfully -- installed with "gem install rmate" on an Ubuntu system -- but rmate wasn't being recognised by the root user (via sudo commands) so I did some fooling around in trying to install rmate for root. Didn't go well so I gave up. The problem is now it doesn't work for any user.
When I type "rmate filename" I get:
/home/ubuntu/.rvm/gems/ruby-2.0.0-p247/gems/rmate-1.5.5/bin/rmate:148:in `initialize': Connection refused - connect(2) (Errno::ECONNREFUSED)
from /home/ubuntu/.rvm/gems/ruby-2.0.0-p247/gems/rmate-1.5.5/bin/rmate:148:in `new'
from /home/ubuntu/.rvm/gems/ruby-2.0.0-p247/gems/rmate-1.5.5/bin/rmate:148:in `connect_and_handle_cmds'
from /home/ubuntu/.rvm/gems/ruby-2.0.0-p247/gems/rmate-1.5.5/bin/rmate:186:in `block in <top (required)>'
from /home/ubuntu/.rvm/gems/ruby-2.0.0-p247/gems/rmate-1.5.5/bin/rmate:185:in `fork'
from /home/ubuntu/.rvm/gems/ruby-2.0.0-p247/gems/rmate-1.5.5/bin/rmate:185:in `<top (required)>'
from /home/ubuntu/.rvm/gems/ruby-2.0.0-p247/bin/rmate:23:in `load'
from /home/ubuntu/.rvm/gems/ruby-2.0.0-p247/bin/rmate:23:in `<main>'
from /home/ubuntu/.rvm/gems/ruby-2.0.0-p247/bin/ruby_executable_hooks:15:in `eval'
from /home/ubuntu/.rvm/gems/ruby-2.0.0-p247/bin/ruby_executable_hooks:15:in `<main>'
Not being a rubiest or even much Ubuntist I'm seeking help from the community. Anyone have any ideas how I can get back to normal?
Ken
p.s. I did try uninstalling and reinstalling (with gem) but that didn't change the behaviour.