The better question would be Python or Ruby. Because Ruby on Rails is a web framework and a DSL written in Ruby, not just a language.
Or ask Django or RoR ;-)
My programming skills increased dramatically while learning Ruby. Instead Rails, I've used Sinatra because Rails is heavily opinionated (unfortunately not my opinions). It then was pretty easy to pick up Python for some little management tools. But never websites stuff with Python.
Lead Fullstack Developer. Experimenting with bleeding-edge tech. Irregularly DJ. Hobby drone pilot. Amateur photographer.