Ruby -v does not detect ruby

Hello,
I had problems with installing rails application and I thought that my
installation went wrong, so I tried to remove all ruby stuff. On one
forum, someone wrote that removing them manually does the job. When I
reinstalled he ruby via sudo apt-ge… ruby -v says that I don’t have
ruby and I should install via sudo apt-…, but it claims that I have
ruby already installed.
I also tried via rvm, but after that ruby -v does not detect anything.

Thanks in advance

remove the ruby packages … manual deleting of files is very wrong
and then install the packages with apt-get again

Also you might consider using RVM its very useful you can install
different versions of ruby and have different sets of gems for each
version. Best of all you can install locally which means no sudo.

https://rvm.beginrescueend.com/