Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7626883
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T05:23:08+00:00 2026-05-31T05:23:08+00:00

Is it possible to use multiple versions of rails using rbenv (e.g. 2.3 and

  • 0

Is it possible to use multiple versions of rails using rbenv (e.g. 2.3 and 3.1)? This was easy with gemsets in rvm, but I’m wondering what the best way is to do it now that I’ve switched to rbenv (also, I’m looking for a way to do it without rbenv-gemset).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T05:23:09+00:00Added an answer on May 31, 2026 at 5:23 am

    not sure if you got an answer to this, but I thought I’d offer what I did and it seemed to work.

    So once you get rbenv installed, and you use it to install a specific ruby version, you can install multiple versions of rails to for that ruby.

    STEP 1. Install whatever version(s) of rails you want per ruby version

    % RBENV_VERSION=1.9.2-p290 rbenv exec gem install rails --version 3.0.11
    

    By using the “RBENV_VERSION=1.9.2-p290” prefix in your command line, you’re specifying which ruby rbenv should be concerned with.

    Then following that with the “rbenv exec” command, you can install rails. Just use the version flag as in the example to specify which version you want. Not sure if you can install multiple versions in one shot, but I just run this command as many times as needed to install each version I want.

    Note: This will all be managed within your rbenv directory, so it’s perfectly safe and contained.

    STEP 2. Build a new rails project by specifying the rails version you want.

    % RBENV_VERSION=1.9.2-p290 rbenv exec rails _3.0.11_ new my_project
    

    STEP 3. Don’t forget to go into that project and set the local rbenv ruby version.

    % cd my_project
    % rbenv local 1.9.2-p290
    

    Now if you want to delete this project, just delete it as normal.

    If you want to delete / manage a rails version from rbenv gems, you can use regular gem commands, just prefix your command line with:

    % RBENV_VERSION=1.9.2-p290 rbenv exec gem {some command}
    

    And of course, you can delete a complete ruby version and all its shims, etc that are managed within rbenv pretty easily. I like how self contained everything is.

    Hope this helps.

    For reference, this is a pretty good walk through of at least some of this stuff:

    http://ascarter.net/2011/09/25/modern-ruby-development.html

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm wondering if it's possible to use a wildcard to select multiple cookies. I'm
I'm trying to find a way of being able to use multiple versions of
Is it possible to use multiple header types in one document? For example: header(Content-type:
Is it possible use a MySQL query to perform this kind of check? If
Is it possible to have multiple versions of PHP running on the same box
I was wondering if it would be possible to save different versions of a
Possible Duplicate: Why do multiple-inherited functions with same name but different signatures not get
I've seen multiple version of this question on this site, but none seems to
I am wondering it is possible to have multiple GridFS in Mongo? The reason
I have been using perlbrew to manage multiple versions of perl on a Linux

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.