1. 下载 rubyinstaller-1.9.2-p290.exe ,随意安装进一个盘(安装的时候要把注册环境变量 tcl 和 关联 .rb 都选上). 安装好后,打开cmd, 用 ruby -v 检测出版本号,则正常。
2. 安装rails : 打开cms 运行命令 gem install rails --include-dependencies. rails -v 能够检测 出rails 的版本号。
3. 安装一个 rails 应用: 随意到一个物理目录, 例如 E:/Ruby. 运行命令: rails new rubytest1 注意 rubytest1 不能是ruby 的关键词(如test 等)
4. cd E:/Ruby/rubytest1 . 运行 bundle install
5. cd E:/Ruby/rubytest1/script 运行 rails server 启动服务
6. 访问 http://localhost:3000