Or you could pick JAVA, where there are more chances to find a job, stable and a better salary.
Now, I gonna shot some myths.
Stack Overflow has limited usability, it means to usage and statistic. Most of the businesses that publish on Stack Overflow Jobs, simply collect information and database. Why do they do that? I'm clueless but it is the typical help-wanted that never answer.
However, even when Stackoverflow-jobs is limited but it the trend of StackOverflow (question)
tiobe.com/tiobe-index/ This ranking is debatable but it marks a real trend.
So I repeat, Rails is like the "second best store in town". So, why not we pick the best one?
And Ruby, Ruby does not work alone, we have Ruby and Rails, so we must learn Ruby AND Rails at the same time. However, and it is the surprise, Rails is for cheap works. Most companies that preach that they use R&R, they use Instead Ruby and Sinatra, maybe they used Rails (at some point) but later they jumped to Sinatra. There is also Grape and Rack, they beat Rails to the death. You don't need to trust me, you could google for that.
So why people pick Rails?
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.