Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Any tips for switching from CakePHP to Ruby on Rails?

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!

like image 399
KahWee Teng Avatar asked Nov 23 '25 21:11

KahWee Teng


2 Answers

Learn Ruby first. You won't get Rails if you try to make it do things the PHP way. Ruby is a beautiful 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.

like image 140
Sasha Chedygov Avatar answered Nov 25 '25 11:11

Sasha Chedygov


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.

like image 35
Corban Brook Avatar answered Nov 25 '25 09:11

Corban Brook



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!