Ruby1.9.2 On Rails3.0.0
Required:
sudo aptitude install bison
sudo aptitude install libmysqlclient-dev
sudo aptitude install libxml2-dev libxslt-dev
sudo aptitude install build-essential libssl-dev libreadline5 libreadline5-dev zlib1g zlib1g-dev
1. Install ruby 1.9.2 and rails3 -- 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.2
> rvm package install readline
> rvm install 1.9.2
> rvm 1.9.2
> ruby -v
5) Install rails3 and dependences
> gem install tzinfo builder memcache-client rack rack-test rack-mount erubis mail text-format thor bundler i18n
> gem install rails
6) Install rspec 2.0.0beta
> gem install rspec --prerelease
> gem install rspec-rails --prerelease
Done
Hopefully everything worked:
> ruby -v
ruby 1.9.2p0
> rails --version
Rails 3.0.0
Switching back to your system Ruby
>rvm system
Back to your Rails3.0 environment
>rvm 1.9.2
Use your RVM environment as your Default
>rvm 1.9.2 --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"
gem "webrat"
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)
4. RESTful_authentication For Rails3
http://github.com/Satish/restful-authentication
分享到:
相关推荐
《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
ruby1.9.2_1.9.2-p290-1_amd64.deb
ruby-1.9.2-p180源代码安装文件,2011年2月24日截止最新Ruby版本。
ruby-1.9.2-p290.tar.gz,ruby,redmin,安装,
ruby on rails3 ruby 1.9.2
ruby-1.9.2-preview1-x64-mswin64_80
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-...
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.
可以使用的ruby 使用方法见我的博客 用于编译faplayer
该文档可以自动帮你在ubuntu下配置ruby on rails 环境,使用ruby1.9.2 + rails 3.0.3 和ruby1.8.7 + rails2.3.5
NULL 博文链接:https://raylinn.iteye.com/blog/743336
Mobylette 1.6+ only supports Ruby 1.9.2+ For Ruby 1.8.7 support, please use version < 1.6 Mobylette 这个gem通过将“ mobile”格式添加到您的rails应用程序中来工作。 每当来自移动设备的请求发出时,...
rubyinstaller-1.9.2, ruby on rails
为Ruby on Rails开发定制Lubuntu。 工具:Vim,RVM,Ruby 1.9.2,Rails 3.1,Tmux,Open Ssh Server,VirtualBox无缝集成。
Ruby 1.9.2 或更高版本。安装将 guard-yamlsort 添加到您的 Gemfile(在开发组内): gem ' guard-yamlsort ' 安装或更新您的包: bundle install 将默认的警卫场定义添加到您的 Guardfile: guard init yamlsort...
ruby 1.9.2 install . can download .
可用于安装:ruby-1.9.2-p0 Rails3 是的。 蒙戈映射器 我能说什么? 我是粉丝。 如果你想运行自己的服务器,那么你可以弄清楚配置。 如果您不想处理这个问题,请查看 MongoHQ.com 上的免费帐户。 在通过 wifi ...
Programming Ruby 1.9 3rd edition.Cover ruby 1.9.2, downloaded from pragmatic bool shelf, please enjoy.
已知与Ruby 1.8和1.9.2兼容。 已知与ActiveRecord 3.0.0.beta,2.3.5、2.2.2、2.1.2兼容。 用法 安装插件后,它的用法像 class User < ActiveRecord xss=removed> true, :message => 'is completely unacceptable...