1.安装ruby环境
http://rubyforge.org/frs/download.php/73722/rubyinstaller-1.9.2-p136.exe
2.安装rails
gem install rails --no-ri --no-rdoc
Successfully installed activesupport-3.0.3
Successfully installed builder-2.1.2
Successfully installed i18n-0.5.0
Successfully installed activemodel-3.0.3
Successfully installed rack-1.2.1
Successfully installed rack-test-0.5.7
Successfully installed rack-mount-0.6.13
Successfully installed tzinfo-0.3.23
Successfully installed abstract-1.0.0
Successfully installed erubis-2.6.6
Successfully installed actionpack-3.0.3
Successfully installed arel-2.0.7
Successfully installed activerecord-3.0.3
Successfully installed activeresource-3.0.3
Successfully installed mime-types-1.16
Successfully installed polyglot-0.3.1
Successfully installed treetop-1.4.9
Successfully installed mail-2.2.14
Successfully installed actionmailer-3.0.3
Successfully installed thor-0.14.6
Successfully installed railties-3.0.3
Successfully installed bundler-1.0.7
Successfully installed rails-3.0.3
23 gems installed
3.安装SQLite3
http://www.sqlite.org/sqlite-dll-win32-x86-3070400.zip
http://www.sqlite.org/sqlite-shell-win32-x86-3070400.zip
解压copy到:d:\Ruby192\bin目录.
sqlite3 -version
4.Create An Example Rails App
1>.From a command prompt, navigate to a directory where you want the application code to live
cd E:\BASICAPP\ror\apps
2>.Start by creating an empty Rails application called todos:
rails new todos
3>.Change into the todos directory that was created in the previous step:
cd todos
4>.The application doesn't know about todos yet, so we'll use scaffolding to quickly generate all the code for managing a list of todos. Run the scaffold generator by typing
rails g scaffold todo name:string due_on:date completed:boolean
You'll see Rails create a bunch of files, including a migration file for creating a database schema to store todo items in a database (SQLite3 in this case).
5>.Run the database migration by typing
rake db:migrate
6>.Then start the Rails app by typing
rails s
7>.Finally, point your web browser at http://localhost:3000 and you should see a page welcoming you to Rails. To start managing your todos, go to http://localhost:3000/todos.
8>.When you're done, you can stop the Rails app by typing CTRL-C in the command prompt where you started the app.
5.install the DevKit:
http://github.com/oneclick/rubyinstaller/wiki/Development-Kit
1>.Remove artifacts extracted by any of the legacy DevKit’s.
2>.Download the self-extracting DevKit-tdm-32-4.5.1-20101214-1400-sfx.exe archive.
3>.Extract the DevKit contents into a directory with no spaces, e.g. – d:\DevKit.
4>.Run the DevKit’s dk.rb init and install helper scripts to generate config.yml and enhance your installed Rubies.
ruby dk.rb init
ruby dk.rb install
5>.update your PATH
D:\DevKit\bin
6>.Run the gem install rdiscount --platform=ruby smoke test.
gem install rdiscount --platform=ruby
6.问题
1>.can't find executable rake for rake-0.8.7
到ruby1.9.2安装目录 /lib/ruby/gems/1.9.1/specifications/下,找到rake.gemspec这个文件,并删除掉,就恢复正常了
2>.
entry point rb_str2cstr could not be located in msvcrt-ruby191.dll
http://bit.ly/9RWQiW
sqlite3-ruby 1.2.5改为1.3.2
分享到:
相关推荐
《ruby on rails web开发学习实录(配光盘)》基于ruby 1.9.2和rails 3.0.3全面探讨ruby on rails框架的组成部分。全书共分17章,主要内容包括:搭建ruby on rails开发平台、ruby语言的基础知识(像控制语句、面向对象...
最新版本的Ruby安装程序 。 ruby1.9.2 installer
ruby-1.9.2-p180源代码安装文件,2011年2月24日截止最新Ruby版本。
ruby1.9.2_1.9.2-p290-1_amd64.deb
ruby-1.9.2-p290.tar.gz,ruby,redmin,安装,
该文档可以自动帮你在ubuntu下配置ruby on rails 环境,使用ruby1.9.2 + rails 3.0.3 和ruby1.8.7 + rails2.3.5
ruby on rails3 ruby 1.9.2
ruby-1.9.2-preview1-x64-mswin64_80
可以使用的ruby 使用方法见我的博客 用于编译faplayer
quora, Quora.com 与 Ruby on Rails ( 不再维护) 类似 Quora克隆在 Rails 上的ruby 中写入。要求首先安装软件Linux ( 推荐 Ubuntu 10.10 ) 。ruby 1.9.2 ( 不支持 1.9.1或者 1.8 )MongoDB 1.8Redis 2.
NULL 博文链接:https://raylinn.iteye.com/blog/743336
2 Ruby 1.9.2, RubyGems # cd ~/source/ # wget ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p174.tar.gz -C ~/source/ # tar xvzf ~/source/ruby-1.8.7-p174.tar.gz -C ../build/ # cd ../build/ruby-...
go1.9.2.windows-amd64.msi(自行解压,内有msi文件) 最新版本Go语言安装包,用于在Windows上安装,源于Golang官网。 亲测可用。
phantomjs-1.9.2-windows seleniu Windows版本 phantomjs-1.9.2-windows seleniu Windows版本 phantomjs-1.9.2-windows seleniu Windows版本
这是我FQ下来的,官方提供的最新Go语言安装包go1.9.2.windows-amd64.msi,大小约91.9MB。注意目前官方网站https://golang.org/dl/,国内是无法访问的。
go1.9.2 安装包
go 语言windows安装包 64位 V1.9.2, 亲测可用, go lang 是google推出的开发语言
GO语言 Windows系统32位下的sdk golangSDK 1.9.2版本 32位压缩包下载资源 go1.9.2.windows-386.zip
go 1.9.2 版本Windows端 安装包;官网下载太慢了,在这提供给大家.