I’ve tried to search a lot about this topic lately. I have not worked with Ruby on Rails before, but I’d like to work on it in future. It would really make sense to learn it only if it does have any advantages, or at least differences compared to Yii. So, i’d request all the experienced developers who have worked with both these frameworks to shed some light on this. How different is Ruby on Rails from Yii? Is it more advantageous to use it instead of Yii (in any sense)? Which one is better in your opinion and why?
P.S. Lets stick to talking about core concepts of the both the frameworks and avoid discussing hosting and deployment stuff.
I suggest you to try it out. It couldn’t make any harm . The 2 framework is similar but the language behind them is not the same and I like a lot more Ruby than PHP. In many cases in ruby you can do more with less code and it lets you less chance to make a mistake etc.
I am a PHP developer for 5 years but in 2 years ago I had a part time Rails job and the only reason I sticked with PHP is, at my current job that’s the language we use. So I am pretty glad to found Yii, because it is very similar.
I read the same about Symfony when I tried to find a Rails like framework in PHP so I tried it. And it was a very big disappointment. I think the principles of Yii and how Yii is working is a lot closer to Rails.
It is funny because at the first glance Symfony looked good for me. So I started to build a real-life app with it and as I started to know more about the framework I started to dislike it. It uses so many unneeded files, it is very hard to navigate inside your app, etc. But with Yii or Rails the more I know them, the more I like them.
It’s difficult to answer since I haven’t used RoR, but from what I’ve heard: if you prefer rapid development without looking too much at the code, then use RoR.
If you prefer to get your hands dirty, use Yii.
If you like to program by scaffolding/raking/generating code using the command line, use RoR.
Yii does this too, but nowhere near as much as RoR.
One thing you need to decide for yourself is what language you like the better. Ruby or PHP.
What I really like about Yii is that you can break almost all the rules - you can’t do that using RoR - conventions must prevail.(AFAIK).