Installing old versions of Ruby and Rails -


my system running ruby v2.1.2p95, rails v4.1.4 , rvm 1.25.28.

i have project running on rails 3.0.9 , wondering best approach installing older versions of ruby/rails be? need install old version of ruby use rails 3.0.9? provided below gemfile old project.

    source 'http://rubygems.org'  gem 'rails', '3.0.9'  # bundle edge rails instead: # gem 'rails', :git => 'git://github.com/rails/rails.git'  gem 'active_link_to' gem 'acts-as-taggable-on', '~> 2.2.2' gem 'annotate' gem 'aws-s3' gem 'dalli' gem 'devise' gem 'easy_roles' gem 'geocoder' gem 'impressionist' gem 'jquery-rails' gem 'kaminari' gem 'koala' # gem 'mysql2', '~> 0.2.6' gem "oa-oauth", :require => "omniauth/oauth" gem 'paperclip', '~> 2.3' # gem 'twitter' # gem 'twitter-text'  # use debugger (ruby-debug ruby 1.8.7+, ruby-debug19 ruby 1.9.2+) # gem 'ruby-debug19', :require => 'ruby-debug'  # bundle gems local environment. make sure # put test-only gems in group generators # , rake tasks available in development mode: # group :development, :test #   gem 'webrat' # end group :production   gem 'pg' end group :development, :test   gem 'mysql2' end 

create 2 files project: file called .ruby-version should have 2.1.2 in it, , file called .ruby-gemset should have name of project in it.

cd directory, , rvm setup environment can run bundle , have old version of rails install without conflicting other versions may use.

this allow bump down ruby version if need to.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -