Programming, science, engineering, and more…
RSS icon Home icon English Spanish
  • Rails 3.1.0

    Posted on {31-Aug-2011} Frank Vielma No comments

    Recently, the rails 3.1.0 is now a release version.

    It is recommendable to use rvm (you need to install rvm) creating a new gemset so, we can isolate the install from the rest of our environments. We need the follow steps:

    • Creating a gemset:
      rvm --create 1.9.2-p180@rails31
    • Installing the last rails version (3.1.0) :
    • gem install rails
    • To generate a new project:
    • rails new project31
    • Adding the following lines to the Gemfile file
    • gem 'execjs'
      gem 'therubyracer'

      ExecJS. Run JavaScript code from Ruby.
      therubyracer. Embed the V8 Javascript Interpreter into Ruby.

    • Running bundle:
    • bundle install
    • Starting the new rails application:
    • rails s

    After it, we would see the following lines:

    => Booting WEBrick
    => Rails 3.1.0 application starting in development on http://0.0.0.0:3000
    => Call with -d to detach
    => Ctrl-C to shutdown server
    [2011-08-31 09:39:29] INFO  WEBrick 1.3.1
    [2011-08-31 09:39:29] INFO  ruby 1.9.2 (2011-02-18) [i686-linux]
    [2011-08-31 09:39:29] INFO  WEBrick::HTTPServer#start: pid=11130 port=3000

    Release notes
    Rails 3.1 sources

best web hosting