学习 Ruby on Rails 的初学者项目
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/9234648/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Beginner projects to learn Ruby on Rails
提问by AdamT
What are some good project ideas one can build in order to learn Ruby on Rails? There are a lot of great tutorials out there (Rails 3 in Action, Agile Web Development with Rails, Railstutorial.org) but they are all rather long requiring some time to go through the entire book. Also, they provide the user with an immediate answer rather than requiring the user to solve the problem themselves. What are short and simple projects a beginner can try without just following a long tutorial?
为了学习 Ruby on Rails,可以构建哪些好的项目想法?那里有很多很棒的教程(Rails 3 in Action、Agile Web Development with Rails、Railstutorial.org),但它们都相当长,需要一些时间来阅读整本书。此外,它们为用户提供即时答案,而不是要求用户自己解决问题。初学者可以在不遵循长教程的情况下尝试哪些简短而简单的项目?
I think a blog and a todo list are good starter projects? What else?
我认为博客和待办事项列表是不错的入门项目吗?还有什么?
(Projects should expose beginner to REST and CRUD)
(项目应该让初学者接触 REST 和 CRUD)
回答by Mgrandjean
A great starting place is Rails for ZombiesI would check that out. If you like that there are many great resources at Code School.
一个很好的起点是Rails for Zombies,我会检查一下。如果您喜欢,Code School有很多很棒的资源。
As far as projects to get started on, the sky's the limit! My advice is to find something that interests you. I'm training for a marathon, so I've written an app that tracks my runs, and tells me the relevant statistics. Its better to build something that interests you, because you will be more likely to spend time building it, which will in turn improve your code.
至于开始的项目,天空是极限!我的建议是找到你感兴趣的东西。我正在为马拉松训练,所以我编写了一个应用程序来跟踪我的跑步,并告诉我相关的统计数据。构建你感兴趣的东西会更好,因为你更有可能花时间构建它,这反过来会改进你的代码。
回答by michaelmichael
The Rails framework and ecosystem is huge. For the most part, the books you're mentioning just scratch the surface in spite of the fact they're really long. To really learnRuby on Rails it'll take going through several of those books, along with some books and projects on the Ruby programming language if you're not yet familiar with it.
Rails 框架和生态系统是巨大的。在大多数情况下,你提到的书只是触及了表面,尽管它们真的很长。要真正学习Ruby on Rails,需要阅读其中的几本书,以及一些关于 Ruby 编程语言的书籍和项目,如果您还不熟悉它的话。
My caveat aside, if you just want to spend a few hours building something try the getting started guide from RailsGuides. It walks you through writing a small blogging app using Rails. You can probably get through it in a few hours.
抛开我的警告,如果您只想花几个小时构建一些东西,请尝试RailsGuides 的入门指南。它会引导您使用 Rails 编写一个小型博客应用程序。你可能会在几个小时内完成它。
回答by Nathan Clark
You should check out railscasts.comby Ryan Bates. He has a rails related subjects and creates a short tutorial on it. Through the years I have found them very helpful.
您应该查看Ryan Bates 的railscasts.com。他有一个与 rails 相关的主题,并创建了一个关于它的简短教程。这些年来,我发现它们非常有帮助。

