For me C++ was my first language too and I guess it was a good choice. You learn all the basic principles of OOP and will understand the logic structure of programming. But of course it depends on what you wanna do with it.
But I'm pretty sure if you switch to rails to do all the fancy web-apps you'll become a much better developper than anyone who started with PHP or - worst case scenario - Rails.
So go for it!