Specifying ruby version and rails version with rbenv when creating a new rails app

To create a new rails project and specify the version of both ruby and rails:

$> RBENV_VERSION=2.0.0-p247 rbenv exec rails _4.0.0_ new project-name

In this example, I’m using Ruby¬†2.0.0-p247 and Rails 4.0.0

Leave a Reply

Your email address will not be published. Required fields are marked *