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 *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">