[英]Learning Ruby on Rails
As it stands now, I'm a Java and C# developer.就目前而言,我是一名 Java 和 C# 开发人员。 The more and more I look at Ruby on Rails, the more I really want to learn it.我对 Ruby on Rails 研究得越多,我就越想学习它。
What have you found to be the best route to learn RoR?您发现什么是学习 RoR 的最佳途径? Would it be easier to develop on Windows, or should I just run a virtual machine with Linux?在 Windows 上开发会更容易,还是应该只在 Linux 上运行虚拟机?
Is there an IDE that can match the robustness of Visual Studio?是否有可以与 Visual Studio 的健壮性相匹配的 IDE? Any programs to develop that give a good overhead of what to do?任何要开发的程序都可以很好地了解要做什么? Any good books?有什么好书吗?
Seriously, any tips/tricks/rants would be awesome.说真的,任何提示/技巧/咆哮都会很棒。
I've been moving from C# in my professional career to looking at Ruby and RoR in my personal life, and I've found linux to be slightly more appealing personally for development. 我从职业生涯的C#转向个人生活中的Ruby和RoR,我发现linux对开发个人更具吸引力。 Particularly now that I've started using git, the implementation is cleaner on linux. 特别是现在我已经开始使用git了,在Linux上实现更干净。
Currently I'm dual booting and getting closer to running Ubuntu full time. 目前,我正在双重引导,并且越来越接近于全天候运行Ubuntu。 I'm using gedit with various plugins for the development environment. 我在开发环境中使用带有各种插件的gedit。 And as of late 2010, I'm making the push to use Vim for development, even over Textmate on OS X. 从2010年底开始,我一直在推动使用Vim进行开发,甚至是通过OS X上的Textmate。
A large amount of the Rails developers are using (gasp) Macs, which has actually got me thinking in that direction. 大量的Rails开发人员正在使用(gasp)Mac,这实际上使我朝着这个方向思考。
Although I haven't tried it, Ruby in Steel gives you a Ruby IDE inside the Visual Studio world, and IronRuby is the .NET flavor of Ruby, if you're interested. 尽管我还没有尝试过,但是Ruby in Steel在Visual Studio世界中为您提供了Ruby IDE,如果您感兴趣的话, IronRuby是Ruby的.NET风格。
As far as books are concerned, the Programming Ruby (also known as the Pickaxe) book from the Pragmatic Programmers is the de-facto for learning Ruby. 就书籍而言,Pragmatic Programmers的《 Programming Ruby》 (也称为Pickaxe)书是学习Ruby的事实。 I bit the bullet and purchased that book and Agile Web Development with Rails ; 我硬着头皮买了那本书和Rails的敏捷Web开发 ; both books have been excellent. 这两本书都很出色。
Peepcode screencasts and PDF books have also been great for getting started; Peepcode截屏视频和PDF书籍也非常适合入门。 at $9 per screencast it's hard to go wrong. 每个截屏影片的价格为9美元,很难出错。 I actually bought a 5-pack. 我实际上买了5包。
Also check out the following: 还请检查以下内容:
I've burned through the backlog of Rails and Rails Envy podcasts in the past month and they have provided wonderful insight into lots of topics, even regarding software development in general. 在过去的一个月中,我已经解决了积压的Rails和Rails Envy播客,他们为许多主题(甚至是有关软件开发的主题)提供了精彩的见解。
Beware, the rails world is a massively frustrating mess of outdated and inconsistent documentation and examples. 当心,Rails世界是一堆令人沮丧的,过时且不一致的文档和示例。 It is maybe one of the fastest moving and most faddish development communities there is. 它可能是发展最快,最时尚的发展社区之一。 By the time you learn something it will already have changed. 到您学到一些东西时,它已经变了。 Even the books are not consistent in which version of rails they are talking about. 甚至书籍也不在讨论他们所使用的Rails版本。 Documentation by blogging! 通过博客文档! enough said. 说够了。
I currently do RoR on windows. 我目前在Windows上执行RoR。 My advice is to avoid windows if you can. 我的建议是尽可能避免使用窗户。 Lots of things don't work and the rails community really really doesn't care about you. 许多事情不起作用,并且Rails社区真的真的不在乎您。 The move to Git has really messed me up since it doesn't work very well on windows. 迁移到Git确实使我感到困惑,因为它在Windows上无法很好地工作。 A lot of gems will fail because of this (Heroku looks like a cool tool - too bad for me it can't handle window's Git setup). 因此很多宝石都会失败(Heroku看起来很酷,对我来说太糟糕了,它无法处理window的Git设置)。 Capistrano is out. Capistrano出局了。 It goes on and annoyingly on. 它继续并且令人讨厌。
Plus, in the back of your mind, you always wonder when something doesn't work "Is it a rails/windows problem?" 另外,在您的脑海中,您总是想知道什么时候不起作用“这是导轨/窗户问题吗?” I am not sure this is solved by using linux because linux brings its own hassles like constantly having to upgrade all those different dependencies, etc...If that's the kind of thing you enjoy it might be an okay choice for you. 我不确定使用linux可以解决此问题,因为linux带来了自己的麻烦,例如不断地必须升级所有这些不同的依赖项,等等。。。 Those days of enjoying system fiddling are behind me and I just want to get on with doing my work. 那些喜欢系统摆弄的日子已经过去,我只想继续工作。 I am planning on installing ubuntu on a home machine just so i can get familiar with things like capistrano so maybe my opinion will change. 我计划在家用计算机上安装ubuntu只是为了让我熟悉capistrano之类的东西,所以也许我的看法会改变。
I'd highly suggest if you are going to do rails dev for any amount of time you seriously consider getting a Mac. 如果您打算认真考虑购买Mac,那么我强烈建议您在任何时间进行Rails开发。 If you value your time and sanity it will pay for itself almost instantly. 如果您珍惜时间和理智,它几乎会立即收回成本。 Depending on how you value your time 10 hours of debugging windows/linux setup problems and you have spend as much as a Mac costs anyway. 根据您如何看待时间,您需要花费10个小时来调试Windows / Linux安装问题,但无论如何,您所花费的费用与Mac一样多。
Rails is a joy compared to what it replaces but it is a bit of a pain in that its proponents skip right past a lot of the boring but important stuff like documentation, compatibility issues and community building. 与替换它相比,Rails是一种乐趣,但是它的支持者却跳过了很多无聊但重要的内容,例如文档,兼容性问题和社区建设,这令人有些痛苦。 It is way more powerful than other frameworks like Django but I sometimes look over at the Django documentation and community and sigh like a guy with a wild sexy girlfriend looking at his friend's plain but sane and stable wife. 它比Django之类的其他框架功能更强大,但我有时会看一下Django文档和社区,像一个狂野而性感的女朋友看着他朋友朴素却又稳重的妻子的家伙叹了口气。 But then rails adds a feature and I go "Ohhh shiny!" 但是,然后Rails添加了一个功能,然后我说“哦,闪闪发光!”
IMO the Rails Screencasts are better than the Peepcode screencasts. IMO的Rails截屏比Peepcode截屏更好。 RubyPlus also has screencasts, mind you, they are bit rough around the edges. 请注意,RubyPlus还提供了一些截屏视频,它们有些粗糙。 BuildingWebApps has a free online course that starts doing screencasts halfway through. BuildingWebApps拥有一个免费的在线课程,该课程从中途开始进行截屏。
Path of least resistance: 阻力最小的路径:
I wrote a post called "Getting Started With Rails -- What I wish I knew" that many people found helpful. 我写了一篇名为“ Rails入门-我希望我知道的东西”的文章 ,许多人认为这是有帮助的。
The basics: 基础:
The online tutorials are decent but scattered. 在线教程不错,但分散。 Invest $30 in a book for a more comprehensive understanding. 在书上投资30美元,以获得更全面的理解。
我发现http://railstutorial.org/book是学习Rails的好资源
I really enjoy RubyMine from Jetbrains. 我真的很喜欢Jetbrains的RubyMine。 It seems like a very full featured IDE something I miss from many of the other alternatives out there. 似乎功能非常强大的IDE令我从许多其他替代品中错过了。 Also for a simple env I enjoy e the text editor. 同样对于一个简单的环境,我喜欢使用文本编辑器。 Plain and simple. 干净利落。
IDE: NetBeans Book: Agile Web Development With Rails Installation: Instant Rails
Data Structures and Algorithms with Object-Oriented Design Patterns in Ruby Bruno R. Preiss | Ruby Bruno R. Preiss中具有面向对象设计模式的数据结构和算法 Published in 2004 2004年出版
Learn to Program Chris Pine | 学习编程 Chris Pine | Pragmatic Bookshelf Published in 2006, 176 pages 实用书架2006年出版,共176页
Mr. Neighborly's Humble Little Ruby Book Jeremy McAnally | 邻居先生的谦虚小红宝石书 Jeremy McAnally | Published in 2006, 147 pages 2006年出版147页
Programming Ruby: A Pragmatic Programmer's Guide David Thomas, Andrew Hunt | Ruby编程:实用程序员指南 David Thomas,Andrew Hunt | Ruby Addison-Wesley Published in 2000, 608 pages Addison-Wesley 2000年出版,共608页
Rails in a Nutshell C. Fauser, J. MacAulay, E. Ocampo-Gooding, J. Guenin | 坚果壳中的滑轨 C. Fauser,J。MacAulay,E。Ocampo-Gooding,J。Guenin | O'Reilly Media Published in 2009, 352 pages O'Reilly Media 2009年出版,共352页
Ruby Best Practices Gregory T. Brown | Ruby最佳实践 Gregory T. Brown | O'Reilly Media Published in 2009, 328 pages O'Reilly Media 2009年出版,共328页
Ruby Essentials | Ruby基础知识 | Techotopia Published in 2007 Techotopia于2007年发布
Ruby on Rails Security Heiko Webers | Ruby on Rails安全性 Heiko Webers | OWASP Published in 2009, 48 pages OWASP于2009年出版,共48页
Ruby User's Guide Mark Slagell | Ruby用户指南 Mark Slagell | Published in 2005 2005年出版
The Book Of Ruby Huw Collingbourne | Ruby Huw Collingbourne 书 | Published in 2009, 425 pages 2009年出版,425页
The Little Book of Ruby Huw Collingbourne | Ruby Huw Collingbourne 小书 | Dark Neon Ltd. Published in 2008, 87 pages Dark Neon Ltd. 2008年出版,共87页
why's (poignant) guide to Ruby why the lucky stiff | 为什么对Ruby的(凄美的)指南为什么幸运的僵硬 Published in 2008 2008年出版
http://railsforzombies.org/ is a nice one. http://railsforzombies.org/是一个不错的网站。 Introducing an all new way to learn Ruby on Rails in the browser with no additional configuration needed. 引入了一种全新的方式来在浏览器中学习Ruby on Rails,而无需其他配置。
现在您可能会对NETTUTS上的一系列非常可靠的系列感兴趣。
As you, I'm a java/C# developer trying to learn more Ruby On Rails. 像您一样,我是一位Java / C#开发人员,试图学习更多Ruby On Rails。
I'm taking the free online course Ruby on Rails Programming with Passion , is a good introductory course, check it out. 我正在免费学习在线课程Ruby on Rails Programming with Passion ,这是一个很好的入门课程,请查看。
We are using NetBeans as IDE (win/mac/linux/solaris), if you are used to Eclipse or Visual Studio, there is a good chance you will like it. 我们将NetBeans用作IDE(win / mac / linux / solaris),如果您习惯Eclipse或Visual Studio,则很有可能会喜欢它。
Fantastic decision! 很棒的决定! It is extremely useful to get a grounding in Ruby before going to Rails so here is my take on the best path to Rails: 在进入Rails之前了解Ruby的知识非常有用,因此这是我通往Rails的最佳途径:
Aside from books the most important thing is to get feedback on what you are doing. 除书籍外,最重要的是获得您所做工作的反馈。 To do this I recommend spending time in irc.freenode.net #ruby and #rubyonrails. 为此,我建议您花时间在irc.freenode.net #ruby和#rubyonrails中。 It is also extremely helpful to post things you are working on or having trouble with here on stackoverflow as the comments, explanations and different way of thinking about things that people provide are invaluable. 在这里将您正在处理或遇到问题的事情张贴在stackoverflow上也非常有帮助,因为对人们提供的事情的评论,解释和不同的思考方式是无价的。
You should also definitely check out the Ruby Rogues podcast , they provide invaluable information and the commentators are all extremely respected people in the Ruby community. 您也绝对应该查看Ruby Rogues播客 ,它们提供了宝贵的信息,评论者都是Ruby社区中非常受人尊敬的人。 And for your viewing and reading pleasure (in that order,) head over to Ryan Bates's Railscasts and then Eifion Bedford's Asciicasts . 为了您的观看和阅读乐趣(按此顺序),请转到Ryan Bates的Railscasts ,然后是Eifion Bedford的Asciicasts 。
Finally, I recommend looking into different gems on github, reading the code and then contributing to them. 最后,我建议在github上研究不同的gem,阅读代码,然后为它们做贡献。 You don't have to get overly ambitious and do massive recodes, especially at first. 您不必过于野心勃勃地进行大量的编码,尤其是在一开始的时候。 Just start with small things like editing and making the README files a little easier to read. 只需从编辑和使README文件更易于阅读之类的小事情开始。
I don't use an IDE but at Railsconf I saw a demo of Rubymine from Jetbrains and it seemed pretty amazing. 我不使用IDE,但是在Railsconf上,我看到了Jetbrains的Rubymine演示,它看起来非常神奇。
0) LEARN RUBY FIRST. 0)首先学习红宝石。 This is very important. 这个非常重要。 One huge advantage of Rails is Ruby: a great language that is very powerful but also marvelously easy to misunderstand. Rails的一个巨大优势是Ruby:这是一种强大的语言,功能强大,但也容易被误解。 Run through a few Ruby tutorials online. 在线浏览一些Ruby教程。 When coding challenges come up on Daily WTF, write them in Ruby. 当Daily WTF遇到编码挑战时,请用Ruby编写。 You'll pick it up fast. 您会很快将它捡起来。
1) Go buy the book "Ruby for Rails" 1)去买书《 Ruby for Rails》
2) Check out a Rails tutorial and subscribe to the Riding Rails blog. 2)查看Rails教程并订阅Riding Rails博客。
3) Standup an app locally. 3)在本地站一个应用程序。 Don't use scaffolding. 不要使用脚手架。
4) When you install plugins into your app, go look at the code in that plugin (in your vendor directory) and learn it. 4)将插件安装到应用程序中时,请查看该插件中的代码(在供应商目录中)并学习它。 It is one of the best ways to learn Ruby and Rails internals. 这是学习Ruby和Rails内部知识的最佳方法之一。 When you don't understand how something works, post it here and 1,000 people will help you. 如果您不了解某件事情的工作原理,请在此处发布,一千个人会为您提供帮助。
As for your other questions: 至于您的其他问题:
Yes, you will need a Linux environment to develop in. You can develop Rails on Windows, but that doesn't mean it should be done. 是的,您需要在其中开发Linux环境。您可以在Windows上开发Rails,但这并不意味着应该这样做。 Lots of gems aren't up to speed on Windows. 在Windows上,许多宝石并没有达到最高速度。
NetBeans works well as an IDE. NetBeans可以很好地用作IDE。 If you're on a Mac, you'll get street cred for using Textmate. 如果您使用的是Mac,则将获得使用Textmate的信誉。
I'm surprised there has been so little mention of Why's (Poignant) Guide to Ruby. 令我惊讶的是,几乎没有提到“为什么(Ruby的)(令人发指)”指南。 Why may not be around anymore but the guide is easy to find on the net ( Google points here first ) it's a very easy read and provided my introduction to Ruby. 为什么可能不再存在了,但是该指南很容易在网上找到( Google首先在这里指出 ),它非常易于阅读,并提供了我对Ruby的介绍。
After the guide, I'd recommend either one of the books the others have suggested, or following the series of screencasts at Learning Rails which is how I picked up enough Ruby on Rails to be dangerous. 读完指南后,我会推荐其中一本推荐的书,或者按照Learning Rails上的一系列截屏视频进行介绍,这就是我如何挑选足够多的Ruby on Rails来避免危险的方法。 Once you've completed the Learning Rails series. 一旦您完成了Learning Rails系列。 what you want to do with Rails will start to diverge from the general tutorials and that's where Railscasts becomes a wonderful tool. 您想要对Rails进行的操作将与常规教程有所不同,而Railscasts正是其中的绝佳工具。 There's not much can be done with Rails that Railscasts hasn't touched on at some point. Rails在某些时候还没有涉及到很多事情。
Find a nearby Ruby users group and start attending that. 找到附近的Ruby用户组并开始参加。 I've found that is a great way to meet a lot of people who are passionate about development and willing to teach. 我发现这是结识许多对发展充满热情并愿意教书的人的好方法。
My first suggestion would be to learn a little about symbols first. 我的第一个建议是首先学习一些有关符号的知识 。 Rails isn't the smallest framework ever, and while there's definitely lots to learn, most of it will start to make sense if you have at least a little bit of understanding what makes it different ("special") from other languages. Rails并不是迄今为止最小的框架,尽管肯定有很多东西要学习,但是如果您至少了解一点点使其与其他语言有所不同(“特殊”)的话,其中的大多数将变得有意义。 As pointed out, there's no exact analog in any of the major languages, but they're heavily used by Rails, in order to make things read straightforwardly and perform well, which is the reason I brought it up. 如前所述,在任何主要语言中都没有确切的类比,但是Rails大量使用它们来使内容直接阅读并表现良好,这就是我提出它的原因。 My very first exposure to Rails was also my first time looking at Ruby (well before 2.0), and the first thing that caught my eye was the goofy :things
they were passing around, and I asked, "WTF is that ?" 我的第一个接触到Rails的也是我第一次看的Ruby(以及前2.0),并吸引我眼球的第一件事是在愚蠢的:things
他们身边掠过,我问,“跆拳道是什么 ?”
Also, check out RubyQuiz , and read other peoples' answers on that site. 另外,请查看RubyQuiz ,并在该站点上阅读其他人的答案。
I used to do Java and C# on Windoze. 我曾经在Windoze上做过Java和C#。
I'd second these sources: 我将引用以下来源:
IDE : Try Apatana RadRails 3 Sneak Peek: http://www.radrails.org/3 . IDE :尝试Apatana RadRails 3速览: http ://www.radrails.org/3。 Its the closest thing you'll get to Visual Studio. 这是您最接近Visual Studio的东西。 I play with it here and there but still love the lightness of Textmate. 我在这里和那里玩,但仍然喜欢Textmate的轻巧。
OS : Mac OS gets the most if not all love from Ruby community. 操作系统 :Mac OS从Ruby社区获得最大甚至全部的好评。 Anything else is treated like a bastard child. 其他任何事物都被当作混蛋。
Books : 书籍 :
Screencasts : 截屏视频 :
I came from a Java background to Ruby to. 我是从Java背景到Ruby来的。 I found this tutorial helpful http://www.ruby-lang.org/en/documentation/ruby-from-other-languages/to-ruby-from-java/ . 我发现本教程对http://www.ruby-lang.org/en/documentation/ruby-from-other-languages/to-ruby-from-java/有帮助。 When it comes to learning rails I cannot say how much I use script\\console. 说到学习Rails,我不能说我使用了多少script \\ console。 It allows you to play with the code and learn how to do things that you are not sure about. 它使您可以使用代码并学习如何执行不确定的事情。
The only book I ever bought was Agile Web Development with Rails, Third Edition http://www.pragprog.com/titles/rails3/agile-web-development-with-rails-third-edition . 我唯一买过的书是《带有Rails的敏捷Web开发》,第三版http://www.pragprog.com/titles/rails3/agile-web-development-with-rails-third-edition 。 It was quite useful and provided a good overview of the Rails framework. 它非常有用,并且很好地概述了Rails框架。 In addition to that I regular watch Railscasts( http://railscasts.com ), which is a great screen casting blog that covers all kinds of Rails topics. 除此之外,我还会定期观看Railscasts( http://railscasts.com ),这是一个很棒的屏幕投稿博客,涵盖了各种Rails主题。
I personally prefer using Linux (because git works better). 我个人更喜欢使用Linux(因为git更好用)。 But, I have also used windows and besides git I do not think the OS choice will impact your programming. 但是,我也使用过Windows,除了git外,我认为操作系统的选择不会影响您的编程。
I use netbeans for my IDE and occasionally vim (with the rails plugin). 我将Netbeans用于我的IDE,偶尔使用vim(带有rails插件)。 I like netbeans but, I find that it can still be a little flaky when it comes to the Rails support (not all the features work all the time). 我喜欢netbeans,但是我发现它在Rails支持方面仍然有些不稳定(并非所有功能始终都起作用)。
This looks like a great resource for people like me who are coming from PHP to RoR 对于像我这样从PHP到RoR的人来说,这似乎是一个很好的资源
http://railsforphp.com/ There's also a book Rails for PHP Developers http://railsforphp.com/还有一本书针对PHP开发人员的Rails
I bought the book "Simply Rails 2" by Patrick Lenz. 我买了Patrick Lenz的书“ Simply Rails 2”。
This book is a great introduction to Ruby and Ruby on Rails. 本书是对Ruby和Ruby on Rails的出色介绍。
As for my ruby installation and db, I used Cygwin. 至于我的ruby安装和数据库,我使用了Cygwin。
It comes with PostgreSQL, ruby and svn. 它带有PostgreSQL,ruby和svn。
I like PostgreSQL because I come from an Oracle 我喜欢PostgreSQL,因为我来自Oracle
background so it feels more comfortable than MySQL. 背景,因此比MySQL更舒适。
The other utility I found really useful was pgAdmin 我发现真正有用的另一个实用程序是pgAdmin
for accessing the PostgreSQL databases. 用于访问PostgreSQL数据库。
The first thing I needed to do was to get gems installed. 我要做的第一件事是安装gems。
I got the gems tar file from rubyforge 我从rubyforge获取了tar文件
wget " http://rubyforge.org/frs/download.php/60718/rubygems-1.3.5.tgz " wget“ http://rubyforge.org/frs/download.php/60718/rubygems-1.3.5.tgz ”
Once I had gems setup, I installed 设置好宝石后,我就安装了
rails 栏杆
ruby-postgres 红宝石Postgres
postgres Postgres
rack 架
I also needed an issue tracking system so I installed redmine. 我还需要一个问题跟踪系统,因此我安装了redmine。
wget " http://rubyforge.org/frs/download.php/60718/rubygems-1.3.5.tgz " wget“ http://rubyforge.org/frs/download.php/60718/rubygems-1.3.5.tgz ”
I found that using a UNIX-like environment (Cygwin) was 我发现使用类似UNIX的环境(Cygwin)
preferable in my case because many of the tutorials were 在我的情况下更可取,因为许多教程都是
taylored for OS X or Linux. 专为OS X或Linux设计。
The text editor I use is Textpad. 我使用的文本编辑器是Textpad。 I'm looking for an alternative. 我正在寻找替代方案。 I think that vim with the rails plugin might work nicely. 我认为带有rails插件的vim可能效果很好。
I come from a non-programming background. 我来自非编程背景。 I have learned PHP on my own and recently joined a firm that specializes in Ruby on Rails. 我自己学习过PHP,最近加入了一家专门研究Ruby on Rails的公司。 They have a comprehensive Rails training program, which is flexible enough to accommodate whatever changes we want to implement. 他们有一个全面的Rails培训计划,该计划足够灵活以适应我们想要实施的任何更改。 Though I am not a rails pro, I would like to share my experience with rails. 尽管我不是Rails专业人士,但我想分享我在Rails方面的经验。 I hope that it helps. 希望对您有所帮助。
Here is the path I am following [combined with tools I am using] 这是我要遵循的路径[与我正在使用的工具结合]
Few imp points 一点曝光点
Tools 工具类
Finally I have one thing to say "Keep trying". 最后,我有一句话说“继续尝试”。 All the best. 祝一切顺利。
The ubber source for anything Rails is http://www.rubyonrails.org/ if they don't have it on the site you probably don't need it. 任何Rails的ubber来源都是http://www.rubyonrails.org/,如果他们在网站上没有它,您可能就不需要它。
A quick cookbook is Ruby on Rails: Up and Running you can get it from O'Rielly or search Google for a on-line version. 快速指南是Ruby on Rails:启动和运行,您可以从O'Rielly获取它,或在Google上搜索在线版本。 They walk you though the conventions of Rails and use Instant Rails which is ok. 他们会按照Rails的约定引导您,并使用Instant Rails没关系。
A better Rails book "Agile Web Development with Rails" This is the soups to nuts of Rails. 一本更好的Rails书“使用Rails进行敏捷Web开发”,这是Rails的精华。 It walks you though downloading and setting up Rails, Gems, everything. 它可以引导您下载并设置Rails,Gems和所有内容。
If you want are a Java 'guy' and want a transition book O'Reilly has "Rails for Java Developers" http://oreilly.com/catalog/9780977616695/?CMP=AFC-ak_book&ATT=Rails+for+Java+Developers 如果您想成为Java的“老兄”并且想要一本过渡书,O'Reilly会为Java开发人员准备“ Rails for Java开发人员” http://oreilly.com/catalog/9780977616695/?CMP=AFC-ak_book&ATT=Rails+for+Java+Developers
您可以尝试的另一个IDE是Aptana 。
Oh I almost forgot. 哦,我差点忘了。 Here are a few more Ruby screencast resources: 这里还有一些Ruby截屏资源:
SD Ruby - the have a bunch of videos online - I found their Rest talks SD9 and SD10 to be among the best of the intros. SD Ruby-在线上有很多视频-我发现他们的Rest谈话SD9和SD10属于最好的介绍。 Other rest talks assume you know everything. 其他的闲谈都假定您知道一切。 These ones are very introductory and to the point. 这些都是非常入门的内容。
Obie Fernandez on InfoQ - Restful Rails. InfoQ上的Obie Fernandez -Restful Rails。 I've also read his Rails Way book and found it informative but really long winded and meandering and the quality is a bit inconsistent. 我还阅读了他的《 Rails Way》一书,发现该书内容丰富,但曲折而曲折,而且质量有点不一致。 I learned a lot from this book but felt it was a bit punishing to have to read through the repetition and irrelevant stuff to get to the good bits. 我从这本书中学到了很多东西,但觉得必须仔细阅读重复和无关紧要的内容才能获得好的成绩,这有点令人痛苦。
Netbeans is a nice hand holding IDE that can teach you a lot of language tricks if you have the patience to wait for its tooltips (it is a painfully slow IDE even on a really fast machine) and you can use the IDE to graphically browse through the available generators and stuff like that. Netbeans是一个不错的手持IDE,如果您有耐心等待它的工具提示(即使在非常快的计算机上,它也是一个非常慢的IDE),并且可以使用它以图形方式浏览,它可以教给您很多语言技巧。可用的发电机之类的东西。 Get the latest builds and you even have Rspec test running built in. 获取最新版本,甚至可以内置Rspec测试。
Bort is a prebuilt base app with a lot of the standard plugins already plugged in. If you download it and play with it and figure out how it is setup you are about halfway to creating your own full featured apps. Bort是一个预先构建的基本应用程序,已经插入了许多标准插件。如果您下载并使用它,并弄清楚它的设置方式,那么您就快要创建自己的全功能应用程序了。
My suggestion is just to start - pick a small project that you would generally use to learn an MVC-style language (ie something with a database, maybe some basic workflow), and then as you need to learn a concept, use one (or both!) of 我的建议只是开始-选择一个通常用于学习MVC风格语言的小项目(例如,带有数据库的东西,也许是一些基本的工作流程),然后在需要学习概念时,使用一个(或两者的
Agile Web Development with Rails or The Rails Way 使用Rails或Rails Way进行敏捷Web开发
to learn about how it works, and then try it. 了解其工作原理,然后尝试。
The problems with Agile Web Development are that it's outdated, and that the scenario runs on too long for you really to want to build it once; 敏捷Web开发的问题在于它已经过时,并且该方案的运行时间太长,以至于您真的不想一次构建它。 The Rails Way can be hard to follow as it bounces from reference to learning, but when it's good, it's better than Agile Web Development. 从参考到学习的不断发展,Rails Way可能很难遵循,但是当它很好时,它比敏捷Web开发要好。
But overall they're both good books, and they're both good for learning, but neither of them provide an "education" path that you'll want to follow. 但总的来说,它们都是好书,而且都对学习有好处,但是它们都不提供您要遵循的“教育”道路。 So I read a few chapters of the former (enough to get the basic concepts and learn how to bootstrap the first app - there are some online articles that help with this as well) and then just got started, and then every few days I read about something new or I use the books to understand something. 因此,我读了前几章(足以了解基本概念并学习如何引导第一个应用程序-也有一些在线文章对此有所帮助),然后才开始使用,每隔几天我都会读一遍关于新事物,或者我用书本来了解一些事物。
One more thing: both books are much more Rails books than they are Ruby books, and if you're going to write clean code, it's worth spending a day learning Ruby syntax as early as possible. 还有一件事:这两本书比Rails书籍多于Rails书籍,如果您要编写简洁的代码,则值得花一天的时间尽早学习Ruby语法。 Why's Guide to Ruby is a good one, there are others as well. 为什么《 Ruby指南》是一个很好的指南,还有其他指南。
The fastest way to learn anything, Ruby on Rails included, is pair programming. 结对编程是学习任何事物的最快方法,包括Ruby on Rails 。
Find someone who knows Rails, pick an example app, sit down, and work through fixing bugs, adding features. 找到认识Rails的人,选择一个示例应用程序,坐下来,解决错误,添加功能。
The knowledge sharing is unbelievable. 知识共享令人难以置信。
学习 Ruby 的好链接: http : //en.wikibooks.org/wiki/Ruby_Programming
Just to +1 Agile Web Development with Rails (though make sure you get the latest edition) - http://pragprog.com/只需 +1 使用 Rails 进行敏捷 Web 开发(但请确保您获得最新版本)- http://pragprog.com/
I develop on a Mac and this can soemtimes be beneficial - it's quite a popular platform with Rails developers so many of the blog posts you look at will be mac-orientated.我在 Mac 上开发,这有时是有益的 - 它是一个非常受 Rails 开发人员欢迎的平台,因此您查看的许多博客文章都将面向 mac。 Linux is great too though ;)不过 Linux 也很棒 ;)
Finally - and I have no connection with the company at all - when you do have something you want to put live, heroku is a good choice.最后——我和这家公司完全没有关系——当你有一些东西想要上线时,heroku 是一个不错的选择。 Finding a cheap rails host isn't easy so this is a nice starting point.找到便宜的 Rails 主机并不容易,所以这是一个不错的起点。 There are a lot of other great hosts out there too though!不过还有很多其他很棒的主人! Heroku does kind of require git for version control (though you can use it on top of subversion). Heroku 确实需要 git 进行版本控制(尽管您可以在 subversion 之上使用它)。
Best of luck!祝你好运!
Railscasts shmailcasts ... 1. Think of some type app that you'd like to develop it. Railscasts shmailcasts ... 1. 想想你想开发的某种类型的应用程序。
2. Take 20 minutes to napkin out some user flows 3. Read the first couple of chapters of "Agile Web Development with Rails" with your project in mind 4. Install Netbeans and rails on your windows or mac machine. 2. 花 20 分钟整理一些用户流程 3. 阅读“使用 Rails 进行敏捷 Web 开发”的前几章,并牢记您的项目 4. 在 Windows 或 Mac 机器上安装 Netbeans 和 Rails。 Either is just the same.两者都是一样的。 5. Develop your app 6. Consult the bajillion and one online references as you develop. 5. 开发您的应用程序 6. 在您开发时查阅 bajillion 和一份在线参考资料。
The Book Agile Development with Rails is the number one teaching aid.使用 Rails 进行敏捷开发一书是排名第一的教具。 It's got a nice life-like(ish) application it builds up through the chapters as it introduces you to different concepts.它有一个很好的栩栩如生(ish)的应用程序,它通过章节构建起来,向您介绍了不同的概念。 I worked through the examples twice, after which I had enough knowledge to do my own stuff and rely on the rails API documentation ( http://api.rubyonrails.org/ ).我完成了两次示例,之后我有足够的知识来做我自己的事情并依赖于 rails API 文档 ( http://api.rubyonrails.org/ )。
To learn Ruby, read "The Well-Grounded Rubyist" by David Black .要学习 Ruby,请阅读David Black 的“The Well-Grounded Rubyist” 。 It is extremely clear, well-written, and well-organized.它非常清晰,写得很好,组织得很好。 The best technical book I've ever read (out of maybe a dozen, since I'm a relatively new programmer).我读过的最好的技术书籍(可能是十几本,因为我是一个相对较新的程序员)。
To learn Rails, read " Head First Rails ."要学习 Rails,请阅读“ Head First Rails” 。 They explain how all the mysterious parts work together.他们解释了所有神秘部分如何协同工作。 Be patient with the silliness and work your way through the examples - it will pay off.对愚蠢的事情要有耐心,并按照自己的方式努力完成示例 - 它会得到回报。 (Also, for consistency, use whatever version of Rails they use. You can upgrade later.) (此外,为了保持一致性,请使用他们使用的任何版本的 Rails。您可以稍后升级。)
Both of these books assume little to no knowledge on your part, regarding OOP programming and MVC architecture.这两本书都假设您对 OOP 编程和 MVC 架构几乎没有知识。 If you do know a bit, don't skim, because you might assume things incorrectly.如果你知道一点,不要略读,因为你可能会错误地假设事情。 (For instance, Ruby objects don't have public attributes, only getters and setters. But you can automatically create multiple getters/setters with a single line like attr_accessor :attr1, :attr2, :attr3
.) (例如,Ruby 对象没有公共属性,只有 getter 和 setter。但是您可以使用一行自动创建多个 getter/setter,例如attr_accessor :attr1, :attr2, :attr3
。)
Without a doubt毫无疑问
Agile Web Development with Rails 使用 Rails 进行敏捷 Web 开发
and和
The Rspec Book Rspec 书
and for fun为了好玩
Advanced Rails Recipies高级 Rails 食谱
Once you get your environment up and running, this is helpful in giving you a basic app that users can log into.一旦您的环境启动并运行,这有助于为您提供一个用户可以登录的基本应用程序。
Restful Authentication with all the bells and whistles: http://railsforum.com/viewtopic.php?id=14216&p=1 Restful Authentication with all bells and whisles: http://railsforum.com/viewtopic.php?id=14216&p=1
I'm currently learning RoR, here's what I've done so far: 1. Read, and followed, SitePoint's "Simply Rails 2.2" 2. Read, and followed, Oreilly's "Rails, Up and Running" 2nd edition.我目前正在学习 RoR,这是我迄今为止所做的: 1. 阅读并遵循 SitePoint 的“Simply Rails 2.2” 2. 阅读并遵循 Oreilly 的“Rails, Up and Running”第 2 版。
Those two books are very instructive, and take the same approach in different styles;这两本书很有启发性,采用相同的方法,但风格不同; the second book is a little more aggressive, which is good if you have some RoR knowledge.第二本书更进取一点,如果你有一些RoR知识就好了。
As posted above, be extremely careful when reading resources, there are A LOT of outdated videos and articles.如上所述,阅读资源时要格外小心,有很多过时的视频和文章。
I've seen the infamous "Blog in 15 minutes" video ages ago when Rails was probably around version 1.0 or something like that.我在很久以前看过臭名昭著的“15 分钟写博客”视频,当时 Rails 大概是 1.0 版或类似的版本。 One of the most important things about the Ruby/Rails world is that given it's great community it's changing ridiculously fast in comparison to other frameworks.关于 Ruby/Rails 世界的最重要的事情之一是,鉴于其强大的社区,与其他框架相比,它的变化速度快得离谱。
Today, Rails is significantly different that what it used to be, altho the main ideology has been kept the same.今天,Rails 与过去截然不同,尽管主要意识形态保持不变。 Having said that event tho in the lsat few years I've learnt a lot of things about Rails I still keep learning new things about it.说到这件事,在 lsat 几年里我已经学到了很多关于 Rails 的东西,我仍然在不断地学习关于它的新东西。
The most valuable resources to me that help me discovering and keeping up with the latest ways of doing Ruby and Rails are the following:对我来说,帮助我发现并跟上使用 Ruby 和 Rails 的最新方法的最有价值的资源如下:
Rails Guides - A nice way of learning Rails itself, edited by the community, moderated by the core contributors. Rails Guides - 一种学习 Rails 本身的好方法,由社区编辑,由核心贡献者主持。 The site has a lot to offer on most of the important main topics around Rails that it can get you up and running very quickly.该站点提供了很多关于 Rails 的大部分重要主题,可以让您快速启动和运行。 It covers bot the most recent stable and edge versions of the framework.它涵盖了 bot 框架的最新稳定版本和边缘版本。
If you understand the main ideology of Rails than I definitely recommend checking out (and subscribing to) Ryan Bates' Railscasts .如果您了解 Rails 的主要思想,我绝对建议您查看(并订阅)Ryan Bates 的Railscasts 。 Let me just quote from the site itself, I think it's pretty self explanatory:让我引用网站本身的内容,我认为这是不言自明的:
Every week Ryan Bates will host a new Railscasts episode featuring tips and tricks with Ruby on Rails.每周,Ryan Bates 都会主持一集新的 Railscasts 节目,介绍 Ruby on Rails 的技巧和窍门。 These screencasts are short and focus on one technique so you can quickly move on to applying it to your own project.这些截屏视频很短,专注于一种技术,因此您可以快速将其应用到您自己的项目中。 The topics target the intermediate Rails developer, but beginners and experts will get something out of it as well.这些主题针对中级 Rails 开发人员,但初学者和专家也会从中有所收获。
There are also a lot of podcasts around Ruby/Rails, the two that I keep listening to are Ruby5 and the Ruby Show .还有很多关于 Ruby/Rails 的播客,我一直在听的两个播客是Ruby5和Ruby Show 。
For more specific questions like API calls etc, I'd recommend APIDock's Rails and Ruby sections where you can get more information on specific methods.对于 API 调用等更具体的问题,我推荐 APIDock 的Rails和Ruby部分,您可以在其中获得有关特定方法的更多信息。
If you are getting more familiar with the framework, it's worth taking a look at Rails Best Practices .如果您对该框架越来越熟悉,那么值得一看Rails 最佳实践。 There's a bunch of short articles on certain issues that most people make in the beginning of their learning curve with Rails.大多数人在开始使用 Rails 学习曲线时,有很多关于某些问题的简短文章。 This site is meant to point pot these issues and help beginners finding their way towards writing better and more well thought out code.该站点旨在指出这些问题,并帮助初学者找到编写更好、更深思熟虑的代码的方法。 There's also a gem that you could use which scans your application and points out these issues and offers solutions/workarounds.还有一个gem ,您可以使用它扫描您的应用程序并指出这些问题并提供解决方案/变通方法。 Pretty neat!漂亮整齐!
These resources should help you in getting up and running with Rails.这些资源应该可以帮助您开始使用 Rails。 Good luck with your journey to the Rails world and welcome to the community.祝你在 Rails 世界的旅程中好运,欢迎来到社区。
There is a site called Softies on Rails that is written by a couple of ex-.NET developers that may be of some use. 有一个名为Softies on Rails的站点,该站点由几个可能有用的前.NET开发人员编写。 They have a book called Rails for .NET Developers coming out in the next few months... 他们将在未来几个月内出版一本名为《 面向.NET开发人员的Rails》的书。
I started out on a Windows box using the RadRails plugin for Eclipse and the RubyWeaver extension for Dreamweaver (back during the 1.x days of Rails). 我从Windows盒子开始,使用用于Eclipse的RadRails插件和用于Dreamweaver的RubyWeaver扩展(在Rails的1.x天中可以找到)。 Since then I have moved to a Mac running TextMate and haven't thought of going back. 从那以后,我搬到了运行TextMate的Mac上,再也没有想过要回头。
As for books, I started with The Ruby Way and Agile Web Development with Rails. 至于书籍,我从The Ruby Way和带有Rails的敏捷Web开发开始。 It definately helps to build a background in Ruby as you start to make your way into Rails development. 当您开始涉足Rails开发时,它绝对有助于在Ruby中建立背景。
Definately watch the Railscast series by Ryan Bates. 一定要看Ryan Bates的Railscast系列。
I have found "The Rails Way" by Obie Fernandez excellent and often found myself referring to it when Agile Web Development with Rails didn't seem to go far enough. 我发现Obie Fernandez撰写的“ The Rails Way”非常好,当使用Rails进行敏捷Web开发似乎还远远不够时,我经常会提到它。 Obie Fernandez has a decent blog too. Obie Fernandez也有一个不错的博客 。
Wait a couple of months for Learning Rails by Simon St. Laurent, Edd Dumbill to come out in November. 请等待几个月,等待11月发行的Simon St. Laurent和Edd Dumbill撰写的Learning Rails 。 That series of books is stupendous, and this book will cover the latest version of Rails. 那一系列的书太棒了,这本书将涵盖最新版本的Rails。
A lot of good opinions here.这里有很多好的意见。 I'll add what's not here.我将添加这里没有的内容。 My experience:我的经验:
Setup Resources设置资源
Live Deployment for Development/Testing用于开发/测试的实时部署
Learning学习
Ruby: I used Learn to program (in a weekend), Ruby Visual QuickStart (believe it or not this QS book was "off the hook" excellent). Ruby:我使用了 Learn to program(在一个周末),Ruby Visual QuickStart(不管你信不信这本 QS 书已经“摆脱困境”了)。 This took about a week.这花了大约一周的时间。
Rails: I just went through Learn Rails in one "aggressive" week. Rails:我刚刚在“积极”的一周内完成了 Learn Rails。 Definitely feel I have the nuts and bolts.绝对觉得我有螺母和螺栓。 It's 2009 which I deemed important!这是我认为重要的 2009 年!
Now I plan to combine a more advanced book with a real project.现在我计划将一本更高级的书与一个真实的项目结合起来。
IDE: VIM with rails plugin is great if you're a vim addict. IDE:如果你是一个 vim 瘾君子,那么带有 rails 插件的 VIM 会很棒。 Otherwise, try any suggested above.否则,请尝试上述任何建议。
Of course railscast, etc., are useful for most up to date stuff.当然,railscast 等对于大多数最新的东西都很有用。
My steps was:我的步骤是:
* Agile development with Rails (book)
* Railscasts - very useful, always learn something new.
* And of course the RoR API
书:Obie Fernandez 的 Rails Way IDE:Netbeans 或 TextMate。
My company has been developing mavenlive.com , a knowledge management and decision support platform for three years.我公司已经开发了知识管理和决策支持平台mavenlive.com三年了。 Over the past few years we've learned a lot about rails and here are some of my recommendations.在过去的几年里,我们学到了很多关于 rails 的知识,下面是我的一些建议。
Switch to Mac!切换到 Mac! The tools that are available to you and the development environment on Mac allows you to be far more productive than on Windows.可供您使用的工具和 Mac 上的开发环境使您的工作效率远高于 Windows。
railcasts.com has a wealth of informative screencasts from beginner to expert. railcasts.com 提供从初学者到专家的丰富信息截屏视频。 You can always find new and more efficient ways of doing things from Ryan's posts.您总能从 Ryan 的帖子中找到新的、更有效的做事方式。
Scaling Rails screencasts coupled with NewRelic has provided powerful insight into the performance of our application and allows us to develop effectively while keeping our eyes open for future scalability issues.缩放 Rails 截屏视频与 NewRelic 相结合,为我们的应用程序性能提供了强大的洞察力,并使我们能够有效开发,同时对未来的可扩展性问题保持警惕。
阅读guides.rails.info 上的所有指南,从Rails 入门开始,它们写得很好,组织得很好,而且是最新的。
An excellent source for learning Ruby and Ruby on Rails is at http://www.teachmetocode.com . http://www.teachmetocode.com是学习 Ruby 和 Ruby on Rails 的绝佳来源。 There are screencasts that cover the basics of Rails, along with a 6-part series on how to create a Twitter clone with Ruby on Rails.有涵盖 Rails 基础知识的截屏视频,以及关于如何使用 Ruby on Rails 创建 Twitter 克隆的 6 部分系列。
I actually have an article about getting started with rails that should help.我实际上有一篇关于Rails 入门的文章应该会有所帮助。 The only part of your question it doesn't cover is the OS.它没有涵盖的问题的唯一部分是操作系统。 Mac is the dominant player here, believe it or not! Mac 是这里的主导者,信不信由你! But I use Ubuntu happily.但我很乐意使用Ubuntu。 There are gedit plugins that get you very close to TextMate - in fact, I like gedit better.有一些 gedit 插件可以让你非常接近 TextMate - 事实上,我更喜欢 gedit。
If you're on a windows machine and can use linux, that's definitely a better way to go.如果您使用的是 windows 机器并且可以使用 linux,那绝对是一个更好的方法。 Rails on Windows has a lot of issues. Windows 上的 Rails 有很多问题。
I learnt Ruby with the help of Mr. Neighborly's Humble Little Ruby Book .我在Neighborly 先生的 Humble Little Ruby Book的帮助下学习了 Ruby。 It's an excellent free-to-download introduction to Ruby with lots of examples, which I'd 100% recommend.这是一个很好的免费下载 Ruby 介绍,里面有很多例子,我 100% 推荐。
Some awesome advice here!这里有一些很棒的建议!
Some of the resources I will list have been mentioned, some I don't think were.我将列出的一些资源已经提到,有些我认为没有。 I am definitely still not a pro, I've just been learning for the past few months and I've been improving at a rapid rate.我绝对还不是专业人士,过去几个月我一直在学习,而且我一直在快速进步。 This is what helped me in order:这就是帮助我的顺序:
I hope that was helpful!我希望那是有帮助的! I'm far from being a pro, but I dove in head first and absorbed as much as I could from multiple resources.我远非专业人士,但我首先潜入并从多种资源中尽可能多地吸收。 The ones I mentioned above were the most helpful!我上面提到的那些是最有帮助的!
Oh and what's really helping me now is coming up with personal projects and settings certain tasks.哦,现在真正帮助我的是提出个人项目和设置某些任务。 Following along is great, but you truly learn when you dive in without a guide!跟随是很棒的,但是当您在没有向导的情况下潜入时,您才能真正学到东西!
这也是一个很好的阅读http://guides.rubyonrails.org/
I'm learning Rails now and if you're using Windows (assuming so with C# dev) I highly suggest learning on Linux if investing in a Mac is not an option.我现在正在学习 Rails,如果您使用的是 Windows(假设使用 C# 开发),如果不能选择购买 Mac,我强烈建议您在 Linux 上学习。
If you don't want to to create a separate Partition on your HDD for Ubuntu, I suggest checking out Wubi , a Windows installer for Ubuntu.如果您不想在硬盘上为 Ubuntu 创建单独的分区,我建议您查看Wubi ,这是一个适用于 Ubuntu 的 Windows 安装程序。 The Rails experience is much less of a headache on Ubuntu than it is Windows and I'd argue is similar to that of an OSX dev environment, just not as much application support. Rails 体验在 Ubuntu 上比在 Windows 上更令人头疼,我认为与 OSX 开发环境的体验相似,只是没有那么多的应用程序支持。 I'm currently using a alpha text editor Redcar , which allows you to have some of textmate's functionality, the popular OSX editor.我目前正在使用 alpha 文本编辑器Redcar ,它允许您拥有一些 textmate 的功能,即流行的 OSX 编辑器。
Good books I've read on Rails are Beginning Rails 3 by Cloves Carneiro Jr and Rida Al Barazi.我读过的关于 Rails 的好书是 Cloves Carneiro Jr 和 Rida Al Barazi 的《Beginning Rails 3》。 Also Rails Test Prescriptions by Noel Rappin, about developing in a test-driven approach.还有由 Noel Rappin 编写的 Rails Test Prescriptions,关于以测试驱动的方法进行开发。
My favorite things to keep me moving from amateur to notive are Railscasts by Ryan Bates.我最喜欢的让我从业余到关注的东西是 Ryan Bates 的Railscasts 。 He usually releases a screencast every Monday or so about Rails gems, or recently Sass, SCSS, Coffeescript and technologies related to Rails 3.1.他通常每周一左右发布关于 Rails gems 的截屏视频,或者最近发布 Sass、SCSS、Coffeescript 和与 Rails 3.1 相关的技术。
A must read for any beginning programmer I feel is why's (poignant) guide to ruby .我认为任何初学者都必须阅读的 为什么是 ruby 的(尖锐的)指南。 Unfortunately _why disappeared just as I was getting into Ruby, but his content is still scatter accross various sources.不幸的是 _why 在我刚开始接触 Ruby 时消失了,但他的内容仍然分散在各种来源中。 It has quirky humor and by the end you'll know Ruby's syntax quite well.它具有古怪的幽默感,到最后您将非常了解 Ruby 的语法。
I agree with srboisvert.我同意 srboisvert。 Don't do it on Windows.不要在 Windows 上这样做。 You can add Ubuntu (version of Linux) to Windows and have dual boot.您可以将 Ubuntu(Linux 版本)添加到 Windows 并进行双启动。 It requires some work, but it is easier than going against the grain and trying to get everything working on Widows.这需要一些工作,但它比违背常规并试图让一切都在寡妇上工作更容易。
Ubuntu, Heroku and Git work wonderfully. Ubuntu、Heroku 和 Git 工作得非常好。 Just know the learning curve is steep at first.一开始要知道学习曲线是陡峭的。 Hire someone from Guru.com or Elance to help you.从 Guru.com 或 Elance 雇用某人来帮助您。
Also, running Textmate on Mac is the preferred solution, so if you are considering getting a Mac or have access to one, that is the best thing to do.此外,在 Mac 上运行 Textmate 是首选解决方案,因此,如果您正在考虑购买一台 Mac 或使用一台 Mac,这是最好的选择。 I don't think you need very much computing power...我认为你不需要太多的计算能力......
Finally, my favorite book is Agile Web Development for Rails.最后,我最喜欢的书是 Rails 的敏捷 Web 开发。 Googling around doesn't work so well because most of the information is from old versions of Rails and is deprecated or doesn't work.谷歌搜索效果不佳,因为大部分信息来自旧版本的 Rails,已弃用或不起作用。
I program with RoR on the Mac OS with textmate, and it's awesome.我在 Mac OS 上用 textmate 用 RoR 编程,它很棒。
I would suggest "Programming Ruby 1.9" (The Pickaxe Book) for Ruby and Agile Web Development with Rails" to learn Rails, both published by the Pragmatic Bookshelf.我建议使用“使用 Rails 进行 Ruby 和敏捷 Web 开发的编程 Ruby 1.9”(The Pickaxe Book)来学习 Rails,这两本书都由 Pragmatic Bookshelf 出版。
Good luck!祝你好运!
I asked the same question when I started out - hoping for a somewhat prescriptive guide on learning Rails... couldn't find one so decided I would write one for others who might find themselves in a similar boat one day :) You can find it here:刚开始时我问了同样的问题 - 希望有一份关于学习 Rails 的规范性指南......找不到,所以决定我会为有一天可能会发现自己在类似船上的其他人写一个:) 你可以找到在这里:
Best Way to Learn Ruby & Rails学习 Ruby 和 Rails 的最佳方式
(It's now actually returned with the !learn factoid helper in the official Ruby on Rails IRC chat room.) (它现在实际上是在官方 Ruby on Rails IRC 聊天室中与 !learn factoid 助手一起返回的。)
I have got up to speed with Ruby on Rails fairly quickly via this free online course which is currently being offered by UC Berkeley - Software as a Service - Engineering Long Lasting Software with instruction by Armando Fox and David Patterson .通过这个免费的在线课程,我很快就掌握了 Ruby on Rails,该课程目前由加州大学伯克利分校提供 -软件即服务 - 工程持久软件,由Armando Fox和David Patterson 指导。 I can't speak highly enough of this course... it really was a privilege to learn Rails from these guys.我对这门课程的评价不够高……从这些家伙那里学习 Rails 真的是一种荣幸。 And there is an active community on the course forums if you run into difficulty along the way.如果您在此过程中遇到困难,课程论坛上还有一个活跃的社区。 The first offering of the online course has now finished (as of 25 March, 2012) - the next time it will be run will be sometime in September of 2012.第一期在线课程现已结束(截至 2012 年 3 月 25 日) - 下一次将在 2012 年 9 月的某个时间开课。
It assumes you are a fairly competent developer and gets you started on ruby in the second week, then Rails runs from the third week up to the end of the course (five weeks).它假设您是一个相当称职的开发人员,并让您在第二周开始使用 ruby,然后 Rails 从第三周运行到课程结束(五周)。 Your assignments are marked by an auto-grader.您的作业由自动评分器标记。 You get provided with a pre-built Ubuntu VM image with everything you need for development pre-installed on it (eg Ruby, Rails, Rake, Gems, RSPec, Cucumber, etc).您将获得一个预先构建的 Ubuntu VM 映像,其中预先安装了开发所需的一切(例如 Ruby、Rails、Rake、Gems、RSPEc、Cucumber 等)。 All you have to do is start up the VM inside the (free) VirtualBox software which runs on MacOSX, Windows and Linux.您所要做的就是在运行在 MacOSX、Windows 和 Linux 上的(免费)VirtualBox 软件中启动 VM。
There is a recommended text book for the course ... here ... but you may be able to get by looking at the lectures and screencasts online.有一本推荐的课程教科书……在这里……但您可以通过在线查看讲座和截屏视频来获得。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.