How to use the Rails 2.3 app generator when I have Rails 3 installed?

前端 未结 4 1594
北荒
北荒 2021-01-21 14:05

to clarify: there\'s only one rails command, which gets installed from the latest Rails gem, which is Rails 3 ATM. However, I\'m required to create a Rails 2.3 app.

4条回答
  •  醉梦人生
    2021-01-21 15:02

    Install rvm and then create a new gemset, so that Rails 2 is isolated.

    Or, go to the directory where you want your Rails 2 app to be, create a Gemfile like a Rails 3 app, but specify gem "rails", "~> 2.3" and run bundle install, and you should now be able to issue rails .

提交回复
热议问题