ruby on rails 是如何工作的? [英] How does ruby on rails work?

查看:34
本文介绍了ruby on rails 是如何工作的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是一名 PHP 开发人员,对 Ruby 略知一二.我想学习 Ruby on Rails,但我遇到的大多数资源都将 RoR 功能视为魔法"——即,它具有一定的内部一致性,但不要问它在 Ruby 方面是如何工作的,MySQL等

I'm a PHP developer who knows a little bit of Ruby. I want to learn Ruby on Rails, but most of the resources I've come across treat RoR functionality as "magic" -- i.e., it has a certain internal consistency, but don't bother asking how it works in terms of Ruby, MySQL, etc.

无论如何,我想深入了解 RoR 的工作原理、构建它的设计决策等.我特别对 ActiveRecord 感兴趣,但实际上我正在寻找整个包.

Anyway, I want a deep understanding of how RoR works, the design decisions that went into building it, etc. In particular I'm interested in ActiveRecord, but really I'm looking for the whole package.

欢迎任何书籍/网站/建议.

Any books / sites / advice welcome.

推荐答案

《Agile Web Development with Rails》一书和铁轨之路"都不错.专业活动记录"对 Active Record 进行了深入研究,但没有涉及太多其他内容.播客 Railscasts 有时只是使用魔法,但有时它解释了真正发生的事情.各种博客,例如 Art of Mission 可以找到您要找的东西.

The books "Agile Web Development with Rails" and "The Rails Way" are both pretty good. "Pro Active Record" goes really in depth for Active Record, but doesn't touch on too much else. The podcast Railscasts sometimes just uses the magic, but sometimes it explains what is really going on. Various blogs such as Art of Mission can get into what your looking for.

此外,使用 ruby​​-debug gem 可以让您更好地了解正在发生的事情 - 您可以深入了解幕后运行的内容.

Additionally, using the ruby-debug gem gives you a much better understanding of what is going on - you can step into what is running behind the scenes.

这篇关于ruby on rails 是如何工作的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆