I personally don't have experience with Ruby on Rails, but it is almost universally regarded as an excellent option for web development.
If you want something more versatile (for non-web programming), I would suggest python.
If you go with python, Django is the most popular web framework. However, I find Flask much easier to get started with.
Both are excellent languages. It is tempting to spend a lot of time researching the options in the hopes of picking the "best" language. In my experience, it's better just to pick one and get down to work.