就目前而言,我是一名Java和c#开发人员。我对Ruby on Rails看得越多,我就越想学习它。
你发现学习RoR的最佳途径是什么?在Windows上开发会更容易吗,还是应该在Linux上运行虚拟机?
是否有一种IDE可以与Visual Studio的健壮性相匹配?有什么程序可以给我们一个很好的开销吗?有什么好书吗?
说真的,任何建议/技巧/咆哮都很棒。
就目前而言,我是一名Java和c#开发人员。我对Ruby on Rails看得越多,我就越想学习它。
你发现学习RoR的最佳途径是什么?在Windows上开发会更容易吗,还是应该在Linux上运行虚拟机?
是否有一种IDE可以与Visual Studio的健壮性相匹配?有什么程序可以给我们一个很好的开销吗?有什么好书吗?
说真的,任何建议/技巧/咆哮都很棒。
当前回答
我买了Patrick Lenz写的《Simply Rails 2》。 这本书是对Ruby和Ruby on Rails的很好的介绍。 至于我的ruby安装和db,我使用Cygwin。 它与PostgreSQL, ruby和svn一起提供。 我喜欢PostgreSQL,因为我来自Oracle 所以它感觉比MySQL更舒服。
我发现另一个非常有用的实用程序是pgAdmin 访问PostgreSQL数据库。
我需要做的第一件事就是安装宝石。 我从鲁比弗吉拿了宝石tar文件 wget“http://rubyforge.org/frs/download.php/60718/rubygems-1.3.5.tgz”
设置好宝石后,我就开始安装
rails ruby-postgres postgres 架
我还需要一个问题跟踪系统,所以我安装了redmine。 wget“http://rubyforge.org/frs/download.php/60718/rubygems-1.3.5.tgz”
我发现使用类unix环境(Cygwin)是很困难的 对我来说更可取,因为许多教程都是这样 泰勒为OS X或Linux。
我使用的文本编辑器是Textpad。我正在寻找替代方案。 我认为带有rails插件的vim可能工作得很好。
其他回答
和你一样,我是一名java/ c#开发人员,试图学习更多的Ruby On Rails。
我正在学习免费的在线课程《Ruby on Rails Programming with Passion》,这是一门很好的入门课程,可以去看看。
我们使用NetBeans作为IDE (win/mac/linux/solaris),如果你习惯Eclipse或Visual Studio,你很有可能会喜欢它。
实际上,我有一篇关于如何开始使用rails的文章应该会有所帮助。你的问题中唯一没有涉及到的是操作系统。不管你信不信,Mac是这里的主导者!但是我很喜欢使用Ubuntu。有gedit插件让你非常接近TextMate -事实上,我更喜欢gedit。
如果你在一台windows机器上,可以使用linux,这绝对是一个更好的方法。Windows上的Rails有很多问题。
我在很久以前看过臭名昭著的“15分钟写博客”视频,当时Rails大概还在1.0版本左右。关于Ruby/Rails世界最重要的事情之一是,鉴于它是一个伟大的社区,与其他框架相比,它的变化速度快得可笑。
今天,Rails与过去相比有了很大的不同,尽管其主要意识形态一直保持不变。尽管在过去的几年里我学到了很多关于Rails的东西,但我仍然在不断地学习关于它的新东西。
对我来说,帮助我发现并跟上Ruby和Rails的最新方法的最有价值的资源如下:
Rails Guides - A nice way of learning Rails itself, edited by the community, moderated by the core contributors. 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. It covers bot the most recent stable and edge versions of the framework. If you understand the main ideology of Rails than I definitely recommend checking out (and subscribing to) 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. 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. There are also a lot of podcasts around Ruby/Rails, the two that I keep listening to are Ruby5 and the 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. If you are getting more familiar with the framework, it's worth taking a look at Rails Best Practices. There's a bunch of short articles on certain issues that most people make in the beginning of their learning curve with 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. Pretty neat!
这些资源应该可以帮助您建立和运行Rails。祝您在Rails世界的旅程中好运,欢迎来到这个社区。
在guides. Rails .info上阅读所有的指南,从Getting Started with Rails开始。它们写得很好,组织得很好,而且是最新的。
我非常喜欢Jetbrains的《RubyMine》。它似乎是一个功能非常齐全的IDE,这是我在许多其他替代品中所错过的。也为了一个简单的环境,我喜欢文本编辑器。简单明了。