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

前端 未结 4 1608
北荒
北荒 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 14:58

    The easiest way to do it was:

    1. Create the directory for the project
    2. Create a Gemfile there containing

      gem "rails", "2.3.9"
      gem "sqlite3-ruby", :require => "sqlite3"
      
    3. Run bundle install

    4. Run bundle exec rails . to create an app in the current path

    You don't even need rvm to do this.

提交回复
热议问题