开发者

Porting PHP Site to Ruby on Rails

开发者 https://www.devze.com 2023-02-19 18:45 出处:网络
I have a really simple site in PHP / MySQL and JQuery http://mathalon.in/ , I am learning Ruby on Rails , i开发者_StackOverflow中文版ts fantastic . I wish to port my existing site with data from PHP t

I have a really simple site in PHP / MySQL and JQuery http://mathalon.in/ , I am learning Ruby on Rails , i开发者_StackOverflow中文版ts fantastic . I wish to port my existing site with data from PHP to Ruby on Rails.

I couldn't find any good solution. Any Help ?


Definitely I mirror fl00r's response here, there's no magical "port from PHP to Rails" tool. You'll need to do it manually.

Best thing to do first though, is to just write some simple Rails app yourself - just to get the hang of it. Also using tutorial sites like Rails for Zombies and Railscasts will really help.

Also, make good use of the official Ruby on Rails Guides and the official Ruby on Rails API documentation

After you've done your first simple app with the help of a tutorial, then take on the task of porting your PHP application.


Jason King is right. You should first understand the rails way to handle the Database. Then start porting the database, I guess, being a good in database, you can create various new database scheme or views, and then import the tables into your rails database.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号