首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网络技术 > 网络基础 >

Rails环境配备

2013-03-14 
Rails环境配置1. 安装 RubyInstaller??? http://rubyinstaller.org/downloads/??? 建议安装版本1.9.3, 2.0

Rails环境配置

1. 安装 RubyInstaller

??? http://rubyinstaller.org/downloads/

??? 建议安装版本1.9.3, 2.0版本有些软件兼容性不太好

??? exe文件 直接下一步下一步。安装完ruby -v查看版本


2. gem install Rails

?? cmd 窗口执行,如果通过代理 先执行 set http_proxy=http://192.168.xx.xx:8080

?? 安装完rails -v查看版本

3. 安装Development Kit

?? http://rubyinstaller.org/downloads/

?? 解压
?? ruby dk.rb init
?? ruby dk.rb install

4. gem install json sass
??? gem install mysql mysql2

5. 安装MySQL5.5
?? http://dev.mysql.com/downloads/connector/c/
?? mysql-connector-c-noinstall-6.0.2-win32
?? lib/目录 libmysql.dll 替换到 ruby安装目录/bin

6. rails new testProject -d=mysql

7. cd testProject
?? rails server

?

访问 http://127.0.0.1:3000

?

参考http://rubyer.me/blog/231/单表操作的例子。

使用RubyMine可以参考 http://blog.163.com/rui_haha/blog/static/197757119201110295216618/

热点排行