Ruby1.9.2 On Rails3.0.0

Ruby1.9.2 On Rails3.0.0

Required:
sudo aptitude install bison
sudo aptitude install libmysqlclient-dev
sudo aptitude install libxml2-dev libxslt-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 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 时间:2010-08-31 人气:212
分享到:
blog comments powered by Disqus

相关文章

  • In Ruby on Rails Rake Tutorial (turn) 2010-10-09

    Original: Ruby on Rails Rake Tutorial (aka. How rake turned Me into an Alcoholic) Introduction: As a rails developer, you may be familiar with the rake for your test, or use rake db: migrate to run your migrations, but you really know Rake behind the

  • Ruby on rails tutorial in the classical Rake 2011-05-27

    Ruby on rails tutorial in the classical Rake Recently in combination with the rake svn to write a Daily build report. Our platforms are used most of the background job rake to achieve, to sum up, with the rake to write some of the background job has

  • 学习Ruby你需要了解的相关知识(rvm, gem, bundle, rake, rails等) 2014-02-21

    这篇文章主要介绍了学习Ruby你需要了解的相关知识(rvm, gem, bundle, rake, rails等),需要的朋友可以参考下 Ruby 这个就不用多说了 RVM 用于帮你安装Ruby环境,帮你管理多个Ruby环境,帮你管理你开发的每个Ruby应用使用机器上哪个Ruby环境.Ruby环境不仅仅是Ruby本身,还包括依赖的第三方Ruby插件.都由RVM管理. Rails 这个也不用多说,著名开发框架.详细看 http://zh.wikipedia.org/wiki/Ruby_on_Rai

  • Compile to install Ruby RubyGems Rails3.0 2010-03-30

    See the snow leopard on a default-installed rails, I just gem update rails on it. Mac OS X is indeed powerful, they still feel something missing, in line with the principle of frustrating to see rails3.0beta out, what I am going to re-compile the ins

  • Ruby on Rails install Windows records 2010-10-18

    Ruby on Rails install Windows records (Note: editing, not completed) 1. To understand what is Ruby on Rails Rails is a very well-known Web development framework, Rails and Ruby on Rails is the Ruby implementation. Ruby is an object-oriented scripting

  • Windows install Ruby on Rails Record (October 22 update on download gem to add) 2010-10-18

    Ruby on Rails install Windows records (Note: editing, not completed) 1. To understand what is Ruby on Rails Rails is a very well-known Web development framework, Rails and Ruby on Rails is the Ruby implementation. Ruby is an object-oriented scripting

  • Set in the RHEL install ROR (nginx + passenger + ruby + rails + oracle + netzke) 2011-01-13

    ================================================== ================================================== == Download ruby-enterprise to the / opt / ror http://rubyforge.org/frs/download.php/71096/ruby-enterprise-1.8.7-2010.02.tar.gz Unpack ruby-enterpri

  • Ruby On Rails上手笔记(安装使用全过程) 2015-02-27

    有机会再试一试Rails了,只是原来接触的是2,现在已然变成了4,似乎现在的安装比原来会快些. 有机会再试一试Rails了,只是原来接触的是2,现在已然变成了4,似乎现在的安装比原来会快些.. Rails 4 安装 针对于安装了RVM gem install rails 没有的话应该这样: 复制代码 代码如下: sudo gem install rails 安装RVM可以用句 复制代码 代码如下: curl -L https://get.rvm.io | bash -s stable 查看rai

  • Learn Ruby-2.0 Record - (create mysql works) 2009-03-19

    1, set up the project: rails bookstore-d mysql Add "-d mysql" database are changed to mysql; then want to modify \ bookstore \ config / following database.yml, Such as my changes are as follows development: adapter: mysql encoding: utf8 database

  • Eclipse plug-ins to use Ruby Development Tools 2009-09-09

    Eclipse plug-ins to use Ruby Development Tools Document options Send as an e-mail this page Tomcat Application Development Download IBM open-source J2EE application server, WAS CE new version V1.1 Level: Intermediate Neal Ford ( neal.ford @ gmail.com

iOS 开发

Android 开发

Python 开发

JAVA 开发

开发语言

PHP 开发

Ruby 开发

搜索

前端开发

数据库

开发工具

开放平台

Javascript 开发

.NET 开发

云计算

服务器

Copyright (C) codeweblog.com, All Rights Reserved.

CodeWeblog.com 版权所有 黔ICP备15002463号-1

processed in 0.143 (s). 14 q(s)