其实2年前就学习过一段ROR,当时照着《敏捷开发》这本书,做完了一个demo,然后就再没有碰过。。最近刚好有点时间,买来本ROR的书看,书里面的rails版本已经是3.0了,以前2.X版本的时候比较容易就能搭建好开发环境,在搭建ROR 3.X环境的时候挫折连连,去javaeye求助,又被BS了,说什么现在开发ROR全部是 MAC,最不济也得时LINUX,泪奔….
那就只有一边GOOGLE一边摸索了,特在此记录下来:
一通搜索,给我找到一个好东西,哈哈:RailsRTW 全称 Rails for the Windows
- RubyInstaller 1.9.2-p290
- Ruby on Rails ( v3.1.0 in Ruby 1.9.2), sqlite3 , and mysql2 gems
- SQLite3 DLL and command-line shell
- libmysql.dll from MariaDB
安装完成后,如果新建项目报如下错误:
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命令




