views:

168

answers:

2

I've been wanting to make the switch from PHP. Anyone care to highlight the similar classes or the key differences between CakePHP and Ruby on Rails?

Thank you!

+4  A: 

Im a rails developer that took on a PHP client last year and after researching available php frameworks I decided on CakePHP because I felt it was the most Rails-esque and stable.

So I was in the opposite position that you find yourself now. Quite honestly I have never regretted my decision to start learning rails and im sure you will find the task even easier coming from a CakePHP background.

My advice to you should dive right in, take a couple hours tonight, whip up a quick demo project like a blog or todo list in rails, read through some tutorials. My guess is that you will find right at home. Similar project directory structure, similar database schema, similar conventions. CakePHP comes very very close to cloning the core rails way of doing things.

Corban Brook
I think you might've just motivated ME to try something new! I may try to whip up the same blog app as CakeBook has in RoR just to give it a whirl.
Travis Leleu
Thanks for your advise, I'll definately give Rails a go again. Last year I tried Rails but aborted a project as I couldn't get things done the Rails way. I wasn't good in Ruby and everything was just too much for me in the short time frame.
KahWee Teng
+5  A: 

Learn Ruby first. You won't get Rails if you try to make it do things the PHP way. You don't really have to learn Ruby to be able to use Rails, but I highly recommend it, as it will make it easier to figure out how to do things "The Ruby/Rails Way". It's a great language and makes you think differently about a lot of things.

Out of all the Ruby tutorials out there, Why's (Poignant) Guide to Ruby is by far the best one out there, IMO.

musicfreak
upvote for mentioning a tutorial that has cartoon foxes.
seth
Thanks for the Ruby tutorial. ;)
KahWee Teng