Ruby1.9.2RC On Rails3RC -- RVM
1. Install ruby 1.9.2RC and rails3RC -- In rvm
You should install the git or ruby && gem
1) Install rvm with Git
> bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head )
2) Install rvm with gem
>sudo gem install rvm
>rvm-install
3) Add this line to the end of .bashrc:
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
The above will make the environment correct for all new terminal windows. In order to make the environment correct for the current terminal, execute this:
source "$HOME/.rvm/scripts/rvm"
4) Install ruby 1.9.2RC
> rvm install 1.9.2-head
> rvm 1.9.2-head
> ruby -v
5) Install rails3RC and dependences
> gem install tzinfo builder memcache-client rack rack-test rack-mount erubis mail text-format thor bundler i18n
> gem install rails --pre
> gem install sqlite3-ruby
6) Install rspec 2.0.0beta
> gem install rspec --prerelease
> gem install rspec-rails --prerelease
7)Install bundler 1.0.0RC.2
> gem install bundler --prerelease
Done
Hopefully everything worked:
> ruby -v
ruby 1.9.2rc
> rails --version
Rails 3.0.0.RC
> gem list
*** LOCAL GEMS ***
abstract (1.0.0)
actionmailer (3.0.0.beta)
actionpack (3.0.0.beta)
activemodel (3.0.0.beta)
activerecord (3.0.0.beta)
activeresource (3.0.0.beta)
activesupport (3.0.0.beta, 2.3.5)
arel (0.2.1)
builder (2.1.2)
bundler (0.9.7)
erubis (2.6.5)
i18n (0.3.3)
mail (2.1.3)
memcache-client (1.7.8)
mime-types (1.16)
mysql (2.8.1)
rack (1.1.0)
rack-mount (0.6.0, 0.4.7)
rack-test (0.5.3)
rails (3.0.0.beta)
railties (3.0.0.beta)
rake (0.8.7)
sqlite3-ruby (1.2.5)
text-format (1.0.0)
text-hyphen (1.0.0)
thor (0.13.3)
tzinfo (0.3.16)
Switching back to your system Ruby
rvm system
Back to your Rails3.0 environment
rvm 1.9.2-head
Use your RVM environment as your Default
rvm 1.9.2-head --default
2. Create a new app
> rails new AC_rails3 -d mysql
> cd AC_rails3
> bundle install
> rails server
3. Rspec
To configure your app to use rspec-rails, add a declaration to your Gemfile.
If you are using Bundler's grouping feature in your Gemfile, be sure to include
rspec-rails in the :development group as well as the :test group so that you
can access its generators and rake tasks.
#{RAILS_PATH}/Gemfile
Add
group :development, :test do
gem "rspec-rails", ">= 2.0.0.beta.19"
end
Be sure to run the following command in each of your Rails apps if you're
upgrading:
> script/rails generate rspec:install
You should set config, let it autoload lib.
config/application.rb
config.autoload_paths += %W(#{config.root}/lib)
3. RESTful_authentication For Rails3
http://github.com/Satish/restful-authentication
分享到:
相关推荐
ruby1.9.2_1.9.2-p290-1_amd64.deb
ruby-1.9.2-preview1-x64-mswin64_80
ruby-1.9.2-p290.tar.gz,ruby,redmin,安装,
最新版本的Ruby安装程序 。 ruby1.9.2 installer
《ruby on rails web开发学习实录(配光盘)》基于ruby 1.9.2和rails 3.0.3全面探讨ruby on rails框架的组成部分。全书共分17章,主要内容包括:搭建ruby on rails开发平台、ruby语言的基础知识(像控制语句、面向对象...
ruby-1.9.2-p180源代码安装文件,2011年2月24日截止最新Ruby版本。
ruby on rails3 ruby 1.9.2
3 rails # gem install rails -v=2.3.11 4 passenger # gem install passenger passenger-install-apache2-module 安装完成后按照提示将下面的内容添加到etc/httpd/httpd.conf LoadModule pa
资源来自pypi官网。 资源全名:pygame-1.9.2rc1-cp35-cp35m-win_amd64.whl
可以使用的ruby 使用方法见我的博客 用于编译faplayer
LSPosed-v1.9.2-7024-riru-release-1.zip
vision_-1.9.2-34-guanwang-release-20200313-124233.apk
spring MVC中返回使用@ResponseBody注解返回时,后台没报错,就控制台显示406 Not Acceptable 原因是缺少jackson的包:jackson-core-asl-1.9.2.jar和jackson-mapper-asl-1.9.2.jar
资源来自pypi官网,解压后可用。 资源全名:pygame-1.9.2-cp35-cp35m-win_amd64.whl
flink-1.9.2-bin-scala_2.12-hadoop_2.7.2.tar flink安装包,支持hadoop2.7.2 scala 2.12,编译完成的二进制包flink安装包
flann-1.9.2-cp39-cp39-win32
flann-1.9.2-cp38-cp38-win32
flann-1.9.2-cp310-cp310-win32
资源来自pypi官网。 资源全名:dijkstra3d-1.9.2-cp38-cp38-win32.whl