Ror about the development environment set up, records are as follows.



1. Netbeans6.5 installation



download netbeans6.5 address http://zh-cn.netbeans.org/download/6.5/ml/



Ruby can download a separate version that only around 50M.



II. Ruby set up the environment

Install ruby: 1 address key installation package http://rubyforge.org/projects/rubyinstaller/



Install rails: gem install rails - remote or gem install rails - include-dependencies



See after the installation of the version:



         gem -v;     // 我的版本 1.3.1

         ruby -v;    // 我的版本 1.8.6

         rails -v;    // 我的版本 2.2.2



Three. Some useful commands



1. If one studies the Agile Web Development with Rails in the sample program Depot, required rails1.2.6, may use the following command:



 gem uninstall rails // 卸载rails

 gem install rails -v 1.2.6  // 安装特定版本的rails(depot)



2. Gem are currently the highest 1.3.1, if you are using a 1.1 or 1.2, you want to upgrade:



gem update --system  // 升级方法一

Updating RubyGems
Nothing to update

// 可能会出现以上错误,通过以下这种方法安装可以解决这个问题: 

gem install rubygems-update // 升级方法二
update_rubygems  // 升级方法二



Iv. Try



user> cd work

work> rails demo  // 创建demo程序骨架

demo> ruby script/server  // 启动webrick服务

// 浏览器中输入

http://localhost:3000



If you see the following picture, congratulations you have succeeded!

ror development environment to build