快速搭建ruby on rails 3.X版本windows开发环境

其实2年前就学习过一段ROR,当时照着《敏捷开发》这本书,做完了一个demo,然后就再没有碰过。。最近刚好有点时间,买来本ROR的书看,书里面的rails版本已经是3.0了,以前2.X版本的时候比较容易就能搭建好开发环境,在搭建ROR 3.X环境的时候挫折连连,去javaeye求助,又被BS了,说什么现在开发ROR全部是 MAC,最不济也得时LINUX,泪奔….

那就只有一边GOOGLE一边摸索了,特在此记录下来:

一通搜索,给我找到一个好东西,哈哈:RailsRTW  全称  Rails for the Windows

下载

安装完成后,如果新建项目报如下错误:

Gem::InstallError: The 'json' native gem requires installed build tools.
Please update your PATH to include build tools or download the DevKit
from 'http://rubyinstaller.org/downloads' and follow the instructions
at 'http://github.com/oneclick/rubyinstaller/wiki/Development-Kit'
An error occured while installing json (1.6.3), and Bundler cannot continue.
Make sure that `gem install json -v '1.6.3'` succeeds before bundling

需要安装DevKit

下载

然后cmd打开命令行,CD进入新建项目的目录下,执行bundle install命令

 

 











发表见解

(必填)

(必填)

(以便回访)





无觅相关文章插件,快速提升流量