如何正确了解 Ruby On Rails?

发布于 2024-12-04 11:23:23 字数 301 浏览 1 评论 0原文

您好,我来自 PHP 背景,并且不太熟悉这些命令行过程和有关 Rails 应用程序操作的想法。我想很好地了解这个 Activerecord、REST 和其他重要任务(例如 Rake)是什么,更准确地说,Rails 中的这个“任务”是什么。我一直在看到这些关于 Rails 的在线屏幕截图,我知道如何让它工作,但不太知道它是如何真正工作的,他们只是扩展类 activerecord 并通过创建自定义类将其使用到他们的应用程序,但是什么是这个 activerecord,我真的很困惑,我很难让 Rails 进入我的大脑,但我真的很想学习它。是否有任何合适的资源可以从基础开始构思想法。请帮忙。

Hi I am from PHP background and in am not really very familiar with these command line process and idea about operation of Rails applications. I want to get fine idea about what is this Activerecord, REST and other important task such as Rake is, more precisely what is this 'task' in Rails anyway. I have been seeing these online screen casts about Rails and I get the idea how to make it work but don't quite know how does that really work, they just extend the class activerecord and use it to their app by making custom class but what is this activerecord, I am really very confused and I am having hard time getting rails inside my brain but I really really want to learn it. Is there any suitable resource to idea idea from basic. Please help.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

雄赳赳气昂昂 2024-12-11 11:23:23

1) 获取《使用 Ruby on Rails 进行敏捷 Web 开发》一书。还可以考虑购买几本 O'Reilly Rails 书籍。另外,有关 Ruby/Rails 的实用程序员书籍也很棒。

2) 如果您所在地区有用户组,请加入该用户组。

3) 根据您的背景确定您的教育背景。如果您不了解 OO(面向对象)编程,请关注 ruby​​,如果您了解(java/c)后台,请关注 db。如果两者都有,请专注于景观。 PHP 开发人员可能会发现 http://pragprog.com/book/ndphpr/rails-for -php-developers 很有用,虽然它是 2008 年(Rails 2)的,目前已经绝版,所以你需要搜索。

4) 制作 3 或 4 个应用程序以供学习。

5)要知道,您将看到的许多错误对于新手来说都是非常神秘的。不要恐慌!

6) 正如您所发现的,截屏视频很好。 Peepcode(付费,例如 8-12 美元,但值得)。

1) Get the "Agile Web Development with Ruby on Rails" book. Also consider getting several of the O'Reilly Rails book. Also the pragmatic programmer books on Ruby/Rails are great.

2) Join a user group if there is one in your area.

3) Base your education on your background. If you don't know OO(Object Oriented) programming, focus on ruby, if you do (java/c) background focus on the db. If you have both, focus on the view. PHP developers may find http://pragprog.com/book/ndphpr/rails-for-php-developers useful,l though it is from 2008 (Rails 2) and currently out of print so you'll need to search.

4) Make 3 or 4 applications to learn from.

5) Know that a lot of the errors you'll see are very cryptic for newbies. Don't Panic!

6) Screencasts are good, as you have found. Peepcode's (paid, e.g. $8-12 but worth it).

橘香 2024-12-11 11:23:23

Michael Hartl 的 Ruby on Rails 教程:通过示例学习 Rails 是一个很好的免费在线资源,可帮助您了解 Rails发展。

Ruby on Rails Tutorial: Learn Rails by Example by Michael Hartl is a good free online resource to help you get into Rails development.

初熏 2024-12-11 11:23:23

以下是我一直在学习的文本中的一些片段。
我不仅对 Rails 很陌生,而且对 OOP 也很陌生。

http://www.sitepoint.com/learn-ruby-on-rails- 9/

http://api.rubyonrails.org/classes/ActiveRecord/Base.html

我还有另一个人提到的“使用 Rails 进行敏捷 Web 开发”。我发现它是黄金,就像“务实的程序员”系列中的其他任何东西一样。

Here's a few segments from the texts i've been learning from.
I am new to not only Rails, but OOP as well.

http://www.sitepoint.com/learn-ruby-on-rails-9/

http://api.rubyonrails.org/classes/ActiveRecord/Base.html

I also have "Agile Web Development with Rails" as another person mentioned. It's golden, as is anything else in "The Pragmatic Programers" series, i've found.

橘味果▽酱 2024-12-11 11:23:23

Rails 是一个框架。 Ruby 是一种语言。

听起来好像你需要开始学习 Ruby 语言。如果您停留在 Rails 级别,您总会有一种“不太了解事情真正如何工作”的感觉。有点像在没有足够了解 PHP 的情况下尝试学习 Drupal 或 Wordpress。

我推荐使用 ruby​​koans 来学习 ruby​​:

http://rubykoans.com/

Rails is a framework. Ruby is the language.

It sounds as if you need to start learning the ruby language. If you stay at the Rails level you will always get that feeling of "not quite knowing how things really work". A bit like trying to learn Drupal or Wordpress without knowing enough PHP first.

I recommend the rubykoans for learning ruby:

http://rubykoans.com/

一刻暧昧 2024-12-11 11:23:23

从这里开始:

http://railsforzombies.org/

一系列非常精彩的关于 Rails 开发基础知识的截屏视频。配备了一个很棒的练习平台,允许您在浏览器中开始练习,而无需命令行工具。

掌握后,您可以查看这本书
它涵盖了各种各样的主题,非常易于理解,甚至尝试解决您可能遇到的任何潜在问题。

从扩展核心类开始可能不是一个好主意:)

Start here:

http://railsforzombies.org/

A very nice series of screencasts on the very basics of Rails development. Comes with a great exercise platform that allows you to start practicing in your browser, without necessity of command line tools.

After you get a grasp you may check out this book.
It covers a wide variety of topics, is very accessible, and even tries to solve any potential problems you may run onto.

It's probably not a good idea to start by extending a core class :)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文