1.1 安装Ruby One-Click Installer, 下载页面http://www.ruby-lang.org/en/downloads/
1.2 安装Rails, Windows CMD(开始-->运行-->cmd) 中运行"gem install rails --include-dependencies" ,自动安装。
eclipse 安装ruby插件
建议通过eclipse更新安装来远程安装插件。
从eclipse的菜单Help->Software Updates->Find and Install
选择"Search for new features to install" 进行安装。
需要安装的有两个插件:
1,RDT
http://updatesite.rubypeople.org/release
从eclipse的菜单Help->Software Updates->Find and Install
选择"Search for new features to install" 进行安装。
需要安装的有两个插件:
1,RDT
http://updatesite.rubypeople.org/release
安装完成后需要设置一下ruby解释器的位置。
通过eclipse菜单 Windows > Preferences 打开Preferences对话框,在Ruby 标题下面的 Installed Interpreters 项中设置的ruby的位置。
2.1 配置Ruby
2.1.1配置Interpreters
打开"Windows-->Preferences", 选择"Ruby-->Installed Interpreters" , 点击"Add"出现的提示框中
代码
2.1.2配置Ri/rdoc
打开"Windows-->Preferences", 选择"Ruby-->Ri/rdoc"
代码
2.2 配置Rails和Rake
打开"Windows-->Preferences", 选择"Rails-->Configuration"
代码
3. 总结
安转RadRails很简单,但是配置还是很容易出问题, 特别是几个path, 除了ruby.exe有扩展名以外, 其他的都没有扩展名. 初学者很容易出问题, 再次强调一遍
这样,ruby环境这完成了。 在eclipse中建立一个ruby的工程,再建一个ruby文件,写上 puts "OK" 就可以看到eclipse的控制台输出ok信息了。