标题: Get Ruby On Rails in no time(Download Ruby) [打印本页] 作者: 阿玛比雷 时间: 2009-11-29 01:45 标题: Get Ruby On Rails in no time(Download Ruby) Ruby
We recommend Ruby 1.8.4 for use with Rails. Ruby 1.8.2 is fine too, but version 1.8.3 is not.
Source: Compile it yourself
Windows installer: Ruby, popular extensions, editor
OS X: Ships with broken Ruby, follow this guide
RubyGems
RubyGems is the standard Ruby package manager. It's similar to apt-get, emerge, and other OS package managers.
Download
(extract, then run "ruby setup.rb")
Rails
With RubyGems loaded, you can install all of Rails and its dependencies through the command line:
gem install rails --include-dependencies
New versions of Rails can be installed the same way. Rails can also be downloaded as stand-alone packages.
Make your application
Create your application skeleton and start the server:
rails path/to/your/new/application
cd path/to/your/new/application
ruby script/server
You're running Ruby on Rails! Follow the instructions on http://0.0.0.0:3000.
Pre-packaged
Ruby on Rails
If you don't have the patience to get Ruby on Rails running manually, you can also try one of the pre-packaged solutions. These include everything in one bundle: Web server, database, Ruby, Rails, the works.
For OS X, there's Locomotive.
For Windows, there's Instant Rails.
Extending Rails
with lots of plugins
There's a world of extensions to the core Rails framework through plugins. They provide cool functionality that may not be needed by most of the people most of the time, but still serve a spot for those exceptions where you do need more. Read more about plugins on the wiki.
Editors
The entire Rails core team is using TextMate on Mac OS X. It's a fantastic editor that ships with Ruby on Rails highlighting and macros. If you're not running Apple, checkout RadRails. It's a cross-platform Rails editor build on top of the Eclipse IDE.