Thanks for the clarification. I phrased it that way because OP really is comparing Rails to PHP (ie: he won't pick Ruby w/out Rails over PHP).
CakePHP is an MVC framework similar to Rails but they're pretty different now (details wise, structurally still similar). I prefer Rails to CakePHP in most respects but I still code with cake because I like PHP.
CakePHP was modeled and inspired by Rails.