Ruby1.9.2 On Rails3.0.0

sponsored links
Ruby1.9.2 On Rails3.0.0

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

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


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

group: development,: test do
gem "rspec-rails", "> = 2.0.0.beta.19"
gem "webrat"

Be sure to run the following command in each of your Rails apps if you're

> 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
  • StumbleUpon
  • Digg
  • TwitThis
  • Mixx
  • Technorati
  • Facebook
  • NewsVine
  • Reddit
  • Google
  • LinkedIn
  • YahooMyWeb

Related Posts of Ruby1.9.2 On Rails3.0.0

  • ROR resources

    Ruby Web site resources: ruby official website: ruby doc official website: rubyonrails official website: programming ruby online edition (Ruby studying the "Bible") ...

  • Workspace run under different Eclipse

    Now do live more and more often required to use eclipse in java and ruby & rails project conducted between the tangential shear from the past, because in the rails project used a coloring Aptana preferences, the results open the java project sour ...

  • Detailed JS regular expressions

    Opening, or have to talk about ^ and $ that they are separately used to match the beginning and end of the string, the following examples to illustrate separately "^ The": there must be at the beginning of "The" string; "of despai

  • JavaScript inheritance

    About JavaScript inherited a small example ... <! DOCTYPE HTML PUBLIC "- / / W3C / / DTD HTML 4.01 / / EN" ""> <html> <head> <meta http-equiv="Content-Type" conte ...

  • JavaScript String Functions Guinness

    Own JS function 1.Asc (x), Chr (x): convert characters, character code 2. Filter: Search string array of a specific string Format: v = filter (x, s [, include [, compare]]) Examples: Dim x ()={" kjwang "," wangkj "," peter ")

  • EJB ant script to deploy template works

    <? xml version = "1.0" encoding = "UTF-8"?> <! - Name Project name basedir build.xml file directory -> <project name="HelloWorld" basedir="."> <! - Property variables -> <! - The sour ...

  • java read file

    java read documents in two ways: and java.lang.ClassLoader When using the, when java.lang.ClassLoader use it? (Note: If prior to read xml file java read file clearly aware of these two methods have been like! Can take much less to understa

  • hibernate using c3p0 connection pooling

    Private c3p0 for open source's JDBC connection pool, with the release hibernate. This article describes how to use the hibernate configuration in c3p0. c3p0 connection pool configuration is v ...

  • Oracle instant clent for ruby / rails on cygwin

    Environment: XP: oracle full client, ruby, rails, gem cygwin: ruby rails, gem (the version with the XP version) Needs: for cygwin is installed under the rails platform support oci Steps: <1> download oracle instant client ( Instant Client Pa

  • Process migration from tomcat to websphere changes

    Process migration from tomcat to websphere changes Because customers use the web application server software used by different what tomcat5, tomcat6, websphere5.1, websphere6.1, weblogic8, and so on, and the software used inconsistent standards, ibm's

blog comments powered by Disqus
Recent Entries
Tag Cloud
Random Entries