converting PHP code to ruby on Rails

Is it possible to convert php code to ruby on Rails code. I am writing a web application in php and i am

considering converting the code to ruby.

Dimitris Papageorgiou wrote in post #1052817:

Is it possible to convert php code to ruby on Rails code. I am writing a
web application in php and i am

considering converting the code to ruby.

Even if this were possible to translate the syntax of the language with
some automated script, that's still not very useful. There's no way
something like that would know how to write proper Ruby and certainly
not proper Ruby on Rails code.

There's a lot more to it than simply translating the language. It would
be less work to rewrite the application than to start from translated
source code. Ruby contains language features and idioms that are not
present in PHP.

You are also making the common mistake of comparing a programming
language with a frame work. PHP is a programming language Ruby is a
programming language, however Ruby on Rails (or simply Rails as it's
commonly known today) is a development framework that happens to be
written in Ruby. Translating the language syntax is only a tiny fraction
of the work involved in converting from PHP to Ruby on Rails.